mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #99107 from justinsb/limit_time_for_kubectl_clusterinfo_dump
tests: Set a 5 minute timeout for kubectl cluster-info dump
This commit is contained in:
commit
2d7e8754c7
@ -1083,7 +1083,12 @@ metadata:
|
|||||||
ginkgo.Describe("Kubectl cluster-info dump", func() {
|
ginkgo.Describe("Kubectl cluster-info dump", func() {
|
||||||
ginkgo.It("should check if cluster-info dump succeeds", func() {
|
ginkgo.It("should check if cluster-info dump succeeds", func() {
|
||||||
ginkgo.By("running cluster-info dump")
|
ginkgo.By("running cluster-info dump")
|
||||||
framework.RunKubectlOrDie(ns, "cluster-info", "dump")
|
|
||||||
|
// Should return in a timely fashion (or we should mark the test slow)
|
||||||
|
timer := time.NewTimer(300 * time.Second)
|
||||||
|
defer timer.Stop()
|
||||||
|
|
||||||
|
framework.NewKubectlCommand(ns, "cluster-info", "dump").WithTimeout(timer.C).ExecOrDie(ns)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user