1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Avoid destroy() timeout by closing stdin in TestStart()

This commit is contained in:
Guillaume J. Charmes 2013-03-31 22:42:10 -07:00
parent ff26493fd5
commit 91b1f9eee9

View file

@ -263,6 +263,10 @@ func TestStart(t *testing.T) {
if err := container.Start(); err == nil {
t.Fatalf("A running containter should be able to be started")
}
// Try to avoid the timeoout in destroy. Best effort, don't check error
cStdin, _ := container.StdinPipe()
cStdin.Close()
}
func TestRun(t *testing.T) {