Merge pull request #10767 from cpuguy83/fix_racey_exec_cgroup_test

Fix race detected in TestExecCgroup
This commit is contained in:
Alexander Morozov
2015-02-13 09:54:06 -08:00
+1 -1
View File
@@ -424,7 +424,7 @@ func TestExecCgroup(t *testing.T) {
for i := 0; i < 5; i++ {
wg.Add(1)
go func() {
cmd = exec.Command(dockerBinary, "exec", "testing", "cat", "/proc/self/cgroup")
cmd := exec.Command(dockerBinary, "exec", "testing", "cat", "/proc/self/cgroup")
out, _, err := runCommandWithOutput(cmd)
if err != nil {
t.Fatal(out, err)