Skip to content

Commit 8c8be25

Browse files
committed
small fix on cleanup sequence
1 parent 45f0b56 commit 8c8be25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/controllers_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ func SetupTestEnvironment() {
242242

243243
DeferCleanup(func() {
244244
// Cancelling the context shuts down any outstanding requests and the test environment.
245-
Ω(testEnv.Stop()).Should(Succeed())
246245
cancel()
246+
Ω(testEnv.Stop()).Should(Succeed())
247247
k8sManager = nil
248248
})
249249
}

0 commit comments

Comments
 (0)