mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Change consistently check timeout to 20 seconds.
This commit is contained in:
parent
a6812d18a5
commit
d1ab3b7f01
@ -32,6 +32,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
consistentCheckTimeout = time.Second * 20
|
||||||
retryTimeout = time.Minute * 5
|
retryTimeout = time.Minute * 5
|
||||||
pollInterval = time.Second * 5
|
pollInterval = time.Second * 5
|
||||||
)
|
)
|
||||||
@ -176,7 +177,7 @@ var _ = Describe("Container runtime Conformance Test", func() {
|
|||||||
Consistently(func() api.PodPhase {
|
Consistently(func() api.PodPhase {
|
||||||
status, phase, err = runningContainer.GetStatus()
|
status, phase, err = runningContainer.GetStatus()
|
||||||
return phase
|
return phase
|
||||||
}, retryTimeout, pollInterval).Should(Equal(testStatus.Phase))
|
}, consistentCheckTimeout, pollInterval).Should(Equal(testStatus.Phase))
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
By("it should get the expected 'RestartCount'")
|
By("it should get the expected 'RestartCount'")
|
||||||
@ -282,7 +283,7 @@ var _ = Describe("Container runtime Conformance Test", func() {
|
|||||||
} else {
|
} else {
|
||||||
return phase
|
return phase
|
||||||
}
|
}
|
||||||
}, retryTimeout, pollInterval).Should(Equal(testStatus.Phase))
|
}, consistentCheckTimeout, pollInterval).Should(Equal(testStatus.Phase))
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
By("it should get the expected 'RestartCount'")
|
By("it should get the expected 'RestartCount'")
|
||||||
|
Loading…
Reference in New Issue
Block a user