From b748766c24e89a73b998abb7742eefe7264ba570 Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Tue, 7 Apr 2020 11:06:12 -0700 Subject: [PATCH] wait cni --- test/integration/start_stop_delete_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/integration/start_stop_delete_test.go b/test/integration/start_stop_delete_test.go index 30698b1da9..3a46594237 100644 --- a/test/integration/start_stop_delete_test.go +++ b/test/integration/start_stop_delete_test.go @@ -89,7 +89,12 @@ func TestStartStop(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), Minutes(40)) defer CleanupWithLogs(t, profile, cancel) - startArgs := append([]string{"start", "-p", profile, "--memory=2200", "--alsologtostderr", "-v=3", "--wait=true"}, tc.args...) + waitFlag := "--wait=true" + if !strings.Contains(tc.name, "cni") { // wait=app_running is broken for CNI https://github.com/kubernetes/minikube/issues/7354 + waitFlag = "--wait=apiserver,system_pods,default_sa" + } + + startArgs := append([]string{"start", "-p", profile, "--memory=2200", "--alsologtostderr", "-v=3", waitFlag}, tc.args...) startArgs = append(startArgs, StartArgs()...) startArgs = append(startArgs, fmt.Sprintf("--kubernetes-version=%s", tc.version))