forked from quic-go/quic-go
Merge pull request #660 from lucas-clemente/timeouts
Increase test timeouts
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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())
|
||||
}()
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user