|
@@ -404,7 +404,12 @@ func TestRunDetach(t *testing.T) {
|
|
|
<-ch
|
|
|
})
|
|
|
|
|
|
- setTimeout(t, "Waiting for container to die timedout", 5*time.Second, func() {
|
|
|
+ time.Sleep(500 * time.Millisecond)
|
|
|
+ if !container.State.Running {
|
|
|
+ t.Fatal("The detached container should be still running")
|
|
|
+ }
|
|
|
+
|
|
|
+ setTimeout(t, "Waiting for container to die timed out", 20*time.Second, func() {
|
|
|
container.Kill()
|
|
|
container.Wait()
|
|
|
})
|
|
@@ -457,6 +462,11 @@ func TestAttachDetach(t *testing.T) {
|
|
|
<-ch
|
|
|
})
|
|
|
|
|
|
+ time.Sleep(500 * time.Millisecond)
|
|
|
+ if !container.State.Running {
|
|
|
+ t.Fatal("The detached container should be still running")
|
|
|
+ }
|
|
|
+
|
|
|
setTimeout(t, "Waiting for container to die timedout", 5*time.Second, func() {
|
|
|
container.Kill()
|
|
|
container.Wait()
|