mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-21 05:07:22 +00:00
Avoid destroy() timeout by closing stdin in TestStart()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user