Merge pull request #660 from lucas-clemente/timeouts

Increase test timeouts
This commit is contained in:
Lucas Clemente
2017-06-09 19:12:44 +02:00
committed by GitHub
4 changed files with 7 additions and 7 deletions

View File

@@ -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)

View File

@@ -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())
}()
}

View File

@@ -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())
}

View File

@@ -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())
}