Change consistently check timeout to 20 seconds.

pull/6/head
Random-Liu 2016-05-16 15:58:42 -07:00
parent a6812d18a5
commit d1ab3b7f01
1 changed files with 5 additions and 4 deletions

View File

@ -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'")