forked from quic-go/quic-go
Fix cookie test for Go1.9
This commit is contained in:
@@ -108,6 +108,10 @@ var _ = Describe("Request", func() {
|
||||
req.AddCookie(cookie2)
|
||||
rw.WriteRequest(req, 11, true, false)
|
||||
_, headerFields := decode(headerStream.dataWritten.Bytes())
|
||||
Expect(headerFields).To(HaveKeyWithValue("cookie", "Cookie #1=Value #1; Cookie #2=Value #2"))
|
||||
// TODO(lclemente): Remove Or() once we drop support for Go 1.8.
|
||||
Expect(headerFields).To(Or(
|
||||
HaveKeyWithValue("cookie", "Cookie #1=Value #1; Cookie #2=Value #2"),
|
||||
HaveKeyWithValue("cookie", `Cookie #1="Value #1"; Cookie #2="Value #2"`),
|
||||
))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user