Avoid unwanted warnings from destroy() in TestStart()

Upstream-commit: cda9cf1539b4e3ce24ce77892b1e68ddb454f566
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-04-04 20:30:24 -07:00
parent 329e4c0143
commit d8fb828ed6

View File

@ -267,6 +267,8 @@ 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)
}
func TestRun(t *testing.T) {