Explorar o código

Wait for the container to finish in TestAttachDisconnect before destroying it

Guillaume J. Charmes %!s(int64=12) %!d(string=hai) anos
pai
achega
a22c78523f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      commands_test.go

+ 1 - 0
commands_test.go

@@ -394,4 +394,5 @@ func TestAttachDisconnect(t *testing.T) {
 	// Try to avoid the timeoout in destroy. Best effort, don't check error
 	cStdin, _ := container.StdinPipe()
 	cStdin.Close()
+	container.Wait()
 }