Skip to content

Commit 04cd025

Browse files
authored
fix: deletion order (#2437)
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
1 parent a7db1b8 commit 04cd025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/runner/runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ func (r *runner) run(ctx context.Context, m mainstart, nsOptions v1alpha2.Namesp
153153
}
154154
// setup cleaner
155155
cleanup := cleaner.New(tc.Timeouts().Cleanup.Duration, nil, tc.DeletionPropagation())
156-
defer func() {
156+
t.Cleanup(func() {
157157
fail(t, r.testCleanup(ctx, tc, cleanup, report))
158-
}()
158+
})
159159
// setup namespace
160160
// TODO: should be part of setupContext ?
161161
if test.Test.Spec.Compiler != nil {

0 commit comments

Comments
 (0)