Skip to content

Commit

Permalink
fix(tests) add missing CLI flag prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Jul 30, 2024
1 parent 351e491 commit fc0fce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc0fce8

Please sign in to comment.