Change consistently check timeout to 20 seconds.
This commit is contained in:
@@ -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'")
|
||||||
|
Reference in New Issue
Block a user