Wilfred Spiegelenburg created YUNIKORN-53:

             Summary: Use asserts for nil error checks in test code
                 Key: YUNIKORN-53
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-53
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: test - smoke, test - unit
            Reporter: Wilfred Spiegelenburg

In a lot of tests we use the construct:
if err != nil {
 t.Fatal("some text"
We should replace that with the simple:
assert.NilError(t, err, "some text"){code}
that is part of the standard assert package we already use in the test code

This message was sent by Atlassian Jira

To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: dev-h...@yunikorn.apache.org

Reply via email to