mirror of https://github.com/k3s-io/k3s
Change consistently check timeout to 20 seconds.
parent
a6812d18a5
commit
d1ab3b7f01
|
@ -32,8 +32,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
retryTimeout = time.Minute * 5
|
consistentCheckTimeout = time.Second * 20
|
||||||
pollInterval = time.Second * 5
|
retryTimeout = time.Minute * 5
|
||||||
|
pollInterval = time.Second * 5
|
||||||
)
|
)
|
||||||
|
|
||||||
type testStatus struct {
|
type testStatus struct {
|
||||||
|
@ -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