Open mojtaba-esk opened 3 weeks ago
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) } })
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: