зеркало из https://github.com/microsoft/docker.git
Fixes race condition in test. Closes #9389.
Signed-off-by: Emily Maier <emily@emilymaier.net>
This commit is contained in:
Родитель
4083fa2620
Коммит
9c5e61c24c
|
@ -13,7 +13,7 @@ func TestStartAttachReturnsOnError(t *testing.T) {
|
|||
defer deleteAllContainers()
|
||||
|
||||
dockerCmd(t, "run", "-d", "--name", "test", "busybox")
|
||||
dockerCmd(t, "stop", "test")
|
||||
dockerCmd(t, "wait", "test")
|
||||
|
||||
// Expect this to fail because the above container is stopped, this is what we want
|
||||
if _, err := runCommand(exec.Command(dockerBinary, "run", "-d", "--name", "test2", "--link", "test:test", "busybox")); err == nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче