Skip to content

Commit

Permalink
fixup! First version of CODE
Browse files Browse the repository at this point in the history
  • Loading branch information
zonzamas committed Sep 30, 2024
1 parent 40640fc commit 6199c2f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/controllers/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ func TestMain(m *testing.M) {
testEnv.Setup(
envfuncs.CreateCluster(kindCluster, kindClusterName),
)
}
exitVal := testEnv.Run(m)

if os.Getenv("RUN_INTEGRATION_TESTS") == "true" {
exitVal := testEnv.Run(m)
testEnv.Finish(
envfuncs.DestroyCluster(kindClusterName),
)
os.Exit(exitVal)
} else {
os.Exit(m.Run())
}
os.Exit(exitVal)
}

0 comments on commit 6199c2f

Please sign in to comment.