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: <nil>: [0] Id already in use: Container with id exists: testCT

Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:
Andrey Vagin 2015-04-14 15:56:05 +03:00
parent 1f91f6564d
commit d13156f2c6
1 changed files with 2 additions and 0 deletions

View File

@ -311,6 +311,8 @@ func TestExecinPassExtraFiles(t *testing.T) {
} }
waitProcess(inprocess, t) waitProcess(inprocess, t)
stdinW.Close()
waitProcess(process, t)
out := string(stdout.Bytes()) out := string(stdout.Bytes())
// fd 5 is the directory handle for /proc/$$/fd // fd 5 is the directory handle for /proc/$$/fd