mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-24 16:16:17 +00:00
Merge pull request #9400 from emilymaier/9389-fix
Fixes race condition in test. Closes #9389.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user