From fc0fce880ca907ca0a9904c5fc4e6814b4129377 Mon Sep 17 00:00:00 2001 From: Travis Raines <571832+rainest@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:37:36 -0700 Subject: [PATCH] fix(tests) add missing CLI flag prefix --- test/integration/suite_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/suite_test.go b/test/integration/suite_test.go index 1361619fc2..15079e3a1e 100644 --- a/test/integration/suite_test.go +++ b/test/integration/suite_test.go @@ -190,7 +190,7 @@ func TestMain(m *testing.M) { // controller-runtime operates an internal leadership deadline and will abort if it cannot update leadership // within a certain number of seconds. Pausing certain segments manager in a debugger can exceed this deadline, // so elections are disabled in integration tests for convenience. - fmt.Sprintf("force-leader-election=%s", manager.LeaderElectionDisabled), + fmt.Sprintf("--force-leader-election=%s", manager.LeaderElectionDisabled), } allControllerArgs := slices.Concat(standardControllerArgs, extraControllerArgs) cancel, err := testutils.DeployControllerManagerForCluster(ctx, logger, env.Cluster(), kongAddon, allControllerArgs)