summaryrefslogtreecommitdiffhomepage
path: root/runsc/test/image
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-05-03 09:53:26 -0700
committerShentubot <shentubot@google.com>2019-05-03 09:54:24 -0700
commit95614bbefa2f4657c77b2040630088fdec7f5dd1 (patch)
tree2a91f4a60d59226cc21542ffc9bd373c76aaf86c /runsc/test/image
parent6b9ab65163528239c9fbf10053427513513e6ab0 (diff)
Increase timeout to wait for port to become available
TestHttpd fails sporadically waiting for the port on slow machines. PiperOrigin-RevId: 246525277 Change-Id: Ie0ea71e3c4664d24f580eabd8f7461e47079f734
Diffstat (limited to 'runsc/test/image')
-rw-r--r--runsc/test/image/image_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/runsc/test/image/image_test.go b/runsc/test/image/image_test.go
index 0c45602f9..8322dd001 100644
--- a/runsc/test/image/image_test.go
+++ b/runsc/test/image/image_test.go
@@ -103,7 +103,7 @@ func TestHttpd(t *testing.T) {
}
// Wait until it's up and running.
- if err := testutil.WaitForHTTP(port, 5*time.Second); err != nil {
+ if err := testutil.WaitForHTTP(port, 10*time.Second); err != nil {
t.Fatalf("WaitForHTTP() timeout: %v", err)
}
@@ -137,7 +137,7 @@ func TestNginx(t *testing.T) {
}
// Wait until it's up and running.
- if err := testutil.WaitForHTTP(port, 5*time.Second); err != nil {
+ if err := testutil.WaitForHTTP(port, 10*time.Second); err != nil {
t.Fatalf("WaitForHTTP() timeout: %v", err)
}