Fix race detected in TestExecCgroup

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff 2015-02-13 12:18:46 -05:00
parent aa073ac05e
commit 8f5156e584

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)