зеркало из https://github.com/microsoft/docker.git
Merge pull request #9606 from LK4D4/fix_race_in_test
Fix race in TestDaemonRestartWithVolumesRefs
This commit is contained in:
Коммит
c60e60a184
|
@ -66,7 +66,7 @@ func TestDaemonRestartWithVolumesRefs(t *testing.T) {
|
||||||
if err := d.Restart(); err != nil {
|
if err := d.Restart(); err != nil {
|
||||||
t.Fatal(err)
|
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)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if out, err := d.Cmd("rm", "-fv", "volrestarttest2"); err != nil {
|
if out, err := d.Cmd("rm", "-fv", "volrestarttest2"); err != nil {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче