Browse code

integration-cli: wait for container before sending ^D

Signed-off-by: Tibor Vass <teabee89@gmail.com>

Tibor Vass authored on 2015/01/23 05:58:59
Showing 1 changed files
... ...
@@ -81,6 +81,9 @@ func TestAttachAfterDetach(t *testing.T) {
81 81
 	}()
82 82
 
83 83
 	time.Sleep(500 * time.Millisecond)
84
+	if err := waitRun(name); err != nil {
85
+		t.Fatal(err)
86
+	}
84 87
 	cpty.Write([]byte{16})
85 88
 	time.Sleep(100 * time.Millisecond)
86 89
 	cpty.Write([]byte{17})