瀏覽代碼

Wait for the container to finish in TestAttachDisconnect before destroying it

Guillaume J. Charmes 12 年之前
父節點
當前提交
a22c78523f
共有 1 個文件被更改,包括 1 次插入0 次删除
  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()
 }