mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 21:51:33 +00:00
Merge pull request #15412 from vdemeester/dont-sleep-too-much
time.Sleep in integration tests — comment and waitRun/waitInspect
This commit is contained in:
@@ -1240,10 +1240,12 @@ func runCommandAndReadContainerFile(filename string, cmd *exec.Cmd) ([]byte, err
|
||||
return nil, fmt.Errorf("%v: %q", err, out)
|
||||
}
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
contID := strings.TrimSpace(out)
|
||||
|
||||
if err := waitRun(contID); err != nil {
|
||||
return nil, fmt.Errorf("%v: %q", contID, err)
|
||||
}
|
||||
|
||||
return readContainerFile(contID, filename)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user