diff options
author | Fabricio Voznika <fvoznika@google.com> | 2019-05-03 09:53:26 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-05-03 09:54:24 -0700 |
commit | 95614bbefa2f4657c77b2040630088fdec7f5dd1 (patch) | |
tree | 2a91f4a60d59226cc21542ffc9bd373c76aaf86c /runsc/test/integration/integration_test.go | |
parent | 6b9ab65163528239c9fbf10053427513513e6ab0 (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/integration/integration_test.go')
-rw-r--r-- | runsc/test/integration/integration_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/test/integration/integration_test.go b/runsc/test/integration/integration_test.go index b2e86aacc..842f05545 100644 --- a/runsc/test/integration/integration_test.go +++ b/runsc/test/integration/integration_test.go @@ -68,7 +68,7 @@ func TestLifeCycle(t *testing.T) { if err != nil { t.Fatal("docker.FindPort(80) failed: ", err) } - if err := testutil.WaitForHTTP(port, 5*time.Second); err != nil { + if err := testutil.WaitForHTTP(port, 10*time.Second); err != nil { t.Fatal("WaitForHTTP() timeout:", err) } client := http.Client{Timeout: time.Duration(2 * time.Second)} |