extend exec-timeout period

This commit is contained in:
lj176172
2021-01-04 16:28:38 +08:00
parent 2e1433c366
commit a181ff46b6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
}
+2 -2
View File
@@ -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"))
})
})
}