Fix race detected in TestExecCgroup
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
aa073ac05e
commit
8f5156e584
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue