mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00:00
Fix race in TestDaemonRestartWithVolumesRefs
Sometimes rm begins before process death, but Kill called already after it, so we get error - no such process. Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
This commit is contained in:
@@ -66,7 +66,7 @@ func TestDaemonRestartWithVolumesRefs(t *testing.T) {
|
||||
if err := d.Restart(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err := d.Cmd("run", "-d", "--volumes-from", "volrestarttest1", "--name", "volrestarttest2", "busybox"); err != nil {
|
||||
if _, err := d.Cmd("run", "-d", "--volumes-from", "volrestarttest1", "--name", "volrestarttest2", "busybox", "top"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if out, err := d.Cmd("rm", "-fv", "volrestarttest2"); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user