From 61c4faf4d159630a048554b3ae19d7bf96191721 Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Fri, 9 Jun 2017 16:46:14 +0200 Subject: [PATCH] Increase test timeouts --- integrationtests/chrome_test.go | 2 +- integrationtests/integration_test.go | 8 ++++---- integrationtests/random_rtt_test.go | 2 +- integrationtests/rtt_test.go | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/integrationtests/chrome_test.go b/integrationtests/chrome_test.go index 928632b2..32465a42 100644 --- a/integrationtests/chrome_test.go +++ b/integrationtests/chrome_test.go @@ -119,7 +119,7 @@ var _ = Describe("Chrome tests", func() { return nil }, 5).ShouldNot(HaveOccurred()) close(done) - }, 10) + }, 20) It("downloads a small file", func() { dataMan.GenerateData(dataLen) diff --git a/integrationtests/integration_test.go b/integrationtests/integration_test.go index 96e800a4..a4d16012 100644 --- a/integrationtests/integration_test.go +++ b/integrationtests/integration_test.go @@ -37,7 +37,7 @@ var _ = Describe("Integration tests", func() { session, err := Start(command, GinkgoWriter, GinkgoWriter) Expect(err).NotTo(HaveOccurred()) defer session.Kill() - Eventually(session).Should(Exit(0)) + Eventually(session, 5).Should(Exit(0)) Expect(session.Out).To(Say(":status 200")) Expect(session.Out).To(Say("body: Hello, World!\n")) }) @@ -54,7 +54,7 @@ var _ = Describe("Integration tests", func() { session, err := Start(command, GinkgoWriter, GinkgoWriter) Expect(err).NotTo(HaveOccurred()) defer session.Kill() - Eventually(session).Should(Exit(0)) + Eventually(session, 5).Should(Exit(0)) Expect(session.Out).To(Say(":status 200")) Expect(session.Out).To(Say("body: foo\n")) }) @@ -70,7 +70,7 @@ var _ = Describe("Integration tests", func() { session, err := Start(command, nil, GinkgoWriter) Expect(err).NotTo(HaveOccurred()) defer session.Kill() - Eventually(session, 2).Should(Exit(0)) + Eventually(session, 10).Should(Exit(0)) Expect(bytes.Contains(session.Out.Contents(), dataMan.GetData())).To(BeTrue()) }) @@ -91,7 +91,7 @@ var _ = Describe("Integration tests", func() { session, err := Start(command, nil, GinkgoWriter) Expect(err).NotTo(HaveOccurred()) defer session.Kill() - Eventually(session, 10).Should(Exit(0)) + Eventually(session, 20).Should(Exit(0)) Expect(bytes.Contains(session.Out.Contents(), dataMan.GetData())).To(BeTrue()) }() } diff --git a/integrationtests/random_rtt_test.go b/integrationtests/random_rtt_test.go index c9a74a5b..a78bb08a 100644 --- a/integrationtests/random_rtt_test.go +++ b/integrationtests/random_rtt_test.go @@ -78,7 +78,7 @@ var _ = Describe("Random RTT", func() { session, err := Start(command, nil, GinkgoWriter) Expect(err).NotTo(HaveOccurred()) defer session.Kill() - Eventually(session, 4).Should(Exit(0)) + Eventually(session, 20).Should(Exit(0)) Expect(bytes.Contains(session.Out.Contents(), dataMan.GetData())).To(BeTrue()) } diff --git a/integrationtests/rtt_test.go b/integrationtests/rtt_test.go index d23774df..d93bf9d1 100644 --- a/integrationtests/rtt_test.go +++ b/integrationtests/rtt_test.go @@ -44,7 +44,7 @@ var _ = Describe("non-zero RTT", func() { session, err := Start(command, nil, GinkgoWriter) Expect(err).NotTo(HaveOccurred()) defer session.Kill() - Eventually(session, 4).Should(Exit(0)) + Eventually(session, 20).Should(Exit(0)) Expect(bytes.Contains(session.Out.Contents(), dataMan.GetData())).To(BeTrue()) }