forked from quic-go/quic-go
Merge pull request #547 from lucas-clemente/fix-integrationtests
Fix quic_client integration tests
This commit is contained in:
@@ -38,7 +38,8 @@ var _ = Describe("Integration tests", func() {
|
|||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
defer session.Kill()
|
defer session.Kill()
|
||||||
Eventually(session).Should(Exit(0))
|
Eventually(session).Should(Exit(0))
|
||||||
Expect(session.Out).To(Say("Response:\nheaders: HTTP/1.1 200\nstatus: 200\n\nbody: Hello, World!\n"))
|
Expect(session.Out).To(Say(":status 200"))
|
||||||
|
Expect(session.Out).To(Say("body: Hello, World!\n"))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("posts and reads a body", func() {
|
It("posts and reads a body", func() {
|
||||||
@@ -54,7 +55,8 @@ var _ = Describe("Integration tests", func() {
|
|||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
defer session.Kill()
|
defer session.Kill()
|
||||||
Eventually(session).Should(Exit(0))
|
Eventually(session).Should(Exit(0))
|
||||||
Expect(session.Out).To(Say("Response:\nheaders: HTTP/1.1 200\nstatus: 200\n\nbody: foo\n"))
|
Expect(session.Out).To(Say(":status 200"))
|
||||||
|
Expect(session.Out).To(Say("body: foo\n"))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("gets a file", func() {
|
It("gets a file", func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user