Increased timeout in TCP port allocation test to pass on slower machines

Upstream-commit: 73da7a12e7d6846a12571e6eac1f16502219c9d4
Component: engine
This commit is contained in:
Solomon Hykes
2013-04-23 10:12:46 -07:00
parent af7d46bbb8
commit f9222f5820

View File

@ -273,7 +273,7 @@ func TestAllocatePortLocalhost(t *testing.T) {
t.Fatal(err)
}
defer container.Kill()
time.Sleep(300 * time.Millisecond) // Wait for the container to run
time.Sleep(600 * time.Millisecond) // Wait for the container to run
conn, err := net.Dial("tcp",
fmt.Sprintf(
"localhost:%s", container.NetworkSettings.PortMapping["5555"],