test: allow 1 CPU with --no-kubernetes flag in integration tests

pull/22739/head
obaida7 2026-03-06 15:47:09 -06:00
parent d5796e6cc5
commit 33b7eba091
1 changed files with 2 additions and 1 deletions

View File

@ -157,7 +157,8 @@ func validateStartNoK8S(ctx context.Context, t *testing.T, profile string) {
defer PostMortemLogs(t, profile)
// docs: start minikube with no Kubernetes.
args := append([]string{"start", "-p", profile, "--no-kubernetes", "--memory=3072", "--alsologtostderr", "-v=5"}, StartArgs()...)
// added --cpus=1 to verify fix for #22152
args := append([]string{"start", "-p", profile, "--no-kubernetes", "--cpus=1", "--memory=3072", "--alsologtostderr", "-v=5"}, StartArgs()...)
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
if err != nil {
t.Fatalf("failed to start minikube with args: %q : %v", rr.Command(), err)