mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
extend exec-timeout period
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"))
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user