Fix race detected in TestExecCgroup
Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: 8f5156e584233f3e83cfc889583fa016aabfeea9 Component: engine
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user