diff --git a/h2quic/request_writer_test.go b/h2quic/request_writer_test.go index 24e0d1a7..576f755c 100644 --- a/h2quic/request_writer_test.go +++ b/h2quic/request_writer_test.go @@ -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"`), + )) }) })