From a181ff46b6973af57f977384f4ca96aabc06ed50 Mon Sep 17 00:00:00 2001 From: lj176172 Date: Mon, 4 Jan 2021 16:28:38 +0800 Subject: [PATCH] extend exec-timeout period --- e2e/cli.go | 2 +- e2e/commonContext.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/cli.go b/e2e/cli.go index f86aa453e..aecfd05fe 100644 --- a/e2e/cli.go +++ b/e2e/cli.go @@ -47,7 +47,7 @@ func ExecAndTerminate(cli string) (string, error) { if err != nil { return string(output), err } - time.Sleep(3 * time.Second) + time.Sleep(30 * time.Second) s := session.Terminate() return string(s.Out.Contents()) + string(s.Err.Contents()), nil } diff --git a/e2e/commonContext.go b/e2e/commonContext.go index 34c4a0893..7602c85ef 100644 --- a/e2e/commonContext.go +++ b/e2e/commonContext.go @@ -215,7 +215,7 @@ var ( appConfig := &corev1alpha2.ApplicationConfiguration{} _ = k8sclient.Get(ctx.Background(), client.ObjectKey{Name: applicationName, Namespace: "default"}, appConfig) return len(appConfig.Status.Workloads) - }, 90*time.Second, 1*time.Second).ShouldNot(gomega.Equal(0)) + }, 200*time.Second, 1*time.Second).ShouldNot(gomega.Equal(0)) cli := fmt.Sprintf("vela status %s", applicationName) output, err := LongTimeExec(cli, 120*time.Second) @@ -247,7 +247,7 @@ var ( output, err := Exec(cli) gomega.Expect(err).NotTo(gomega.HaveOccurred()) return output - }, 90*time.Second, 5*time.Second).Should(gomega.ContainSubstring("bin")) + }, 200*time.Second, 5*time.Second).Should(gomega.ContainSubstring("bin")) }) }) }