소스 검색

Avoid unwanted warnings from destroy() in TestStart()

Guillaume J. Charmes 12 년 전
부모
커밋
cda9cf1539
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      container_test.go

+ 2 - 0
container_test.go

@@ -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) {