Browse code

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

Solomon Hykes authored on 2013/04/24 02:12:46
Showing 1 changed files
... ...
@@ -273,7 +273,7 @@ func TestAllocatePortLocalhost(t *testing.T) {
273 273
 		t.Fatal(err)
274 274
 	}
275 275
 	defer container.Kill()
276
-	time.Sleep(300 * time.Millisecond) // Wait for the container to run
276
+	time.Sleep(600 * time.Millisecond) // Wait for the container to run
277 277
 	conn, err := net.Dial("tcp",
278 278
 		fmt.Sprintf(
279 279
 			"localhost:%s", container.NetworkSettings.PortMapping["5555"],