From d13156f2c69db0011121f78f60e06e774b33e036 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Tue, 14 Apr 2015 15:56:05 +0300 Subject: [PATCH] integration: wait all test processes Otherwise a container cannot be destroyed and we will get an error in the next case: go test -v . === RUN TestExecPS --- FAIL: TestExecPS (0.02s) exec_test.go:43: : [0] Id already in use: Container with id exists: testCT Signed-off-by: Andrey Vagin --- integration/execin_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integration/execin_test.go b/integration/execin_test.go index 7c8a19da..f81faf01 100644 --- a/integration/execin_test.go +++ b/integration/execin_test.go @@ -311,6 +311,8 @@ func TestExecinPassExtraFiles(t *testing.T) { } waitProcess(inprocess, t) + stdinW.Close() + waitProcess(process, t) out := string(stdout.Bytes()) // fd 5 is the directory handle for /proc/$$/fd