Fix race detected in TestExecCgroup

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: 8f5156e584233f3e83cfc889583fa016aabfeea9
Component: engine
This commit is contained in:
Brian Goff
2015-02-13 12:18:46 -05:00
parent 1d7249f857
commit b8d956b4d4

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)