Only retry a test if it errors not because of unit test fails.