Integration tests not idempotent because of faulty cleanup #2652
Labels
area/debt
area/tests
bug
Something isn't working
good first issue
Good for newcomers
nice-to-have
onboarding
priority/low
Milestone
Is there an existing issue for this?
Current Behavior
When integration tests are executed, a lot of cleaning functions are deferred to the end of the test. The problem is that we use the
exitOnErr
function to assert that no error must occur. Whenever such a function fails, the program exits, and all the deferred functions are not executed anymore. This leads to having orphaned resources.Expected Behavior
We should use the new mechanism introduced in KTF to clean resources, instead of the deferred functions. See #2618 as a similar issue in KTF.
The text was updated successfully, but these errors were encountered: