From 6199c2f5b776740b047b56854340949e0383d974 Mon Sep 17 00:00:00 2001 From: Oscar Ferrer Date: Mon, 30 Sep 2024 15:23:53 +0200 Subject: [PATCH] fixup! First version of CODE --- pkg/controllers/main_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/controllers/main_test.go b/pkg/controllers/main_test.go index b307604..c1ca1b5 100644 --- a/pkg/controllers/main_test.go +++ b/pkg/controllers/main_test.go @@ -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) }