We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently if the cleanup function for a test fails, it fails the entire test which is not ideal.
t.Cleanup(func() { require.NoError(t, instance.Destroy(context.Background())) })
it is suggested to avoid that issue, simply use something that does not impact on the test validity like the following:
t.Cleanup(func() { err:= instance.Destroy(context.Background()) if err != nil{ t.Logf("cleanup failed: %w", err) } })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently if the cleanup function for a test fails, it fails the entire test which is not ideal.
it is suggested to avoid that issue, simply use something that does not impact on the test validity like the following:
The text was updated successfully, but these errors were encountered: