Skip to content

Commit

Permalink
validate: fix container with log test
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
  • Loading branch information
runcom committed Nov 20, 2017
1 parent e7a6236 commit 0a28fa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/validate/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ var _ = framework.KubeDescribe("Container", func() {

By("start container with log")
startContainer(rc, containerID)
// wait container started and check the status.
// wait container exited and check the status.
Eventually(func() runtimeapi.ContainerState {
return getContainerStatus(rc, containerID).State
}, time.Minute, time.Second*4).Should(Equal(runtimeapi.ContainerState_CONTAINER_RUNNING))
}, time.Minute, time.Second*4).Should(Equal(runtimeapi.ContainerState_CONTAINER_EXITED))

By("check the log context")
expectedLogMessage := &logMessage{
Expand Down

0 comments on commit 0a28fa8

Please sign in to comment.