Increase the timeout in TestStart() to make sure the container has the time to die within the function

Upstream-commit: 20085794f023e2e5cf7d772a67f9c3b2e3afc93f
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-04-05 02:01:38 -07:00
parent 51b0dca52e
commit cba4b1444c

View File

@ -267,8 +267,7 @@ func TestStart(t *testing.T) {
// Try to avoid the timeoout in destroy. Best effort, don't check error
cStdin, _ := container.StdinPipe()
cStdin.Close()
container.WaitTimeout(500 * time.Millisecond)
container.State.setStopped(0)
container.WaitTimeout(2 * time.Second)
}
func TestRun(t *testing.T) {