remove an old Go 1.8 test case

This commit is contained in:
Marten Seemann 2018-12-28 19:25:43 +07:00
parent 3d2d45d53f
commit ae385e776c

View file

@ -109,10 +109,6 @@ var _ = Describe("Request", func() {
req.AddCookie(cookie2)
rw.WriteRequest(req, 11, true, false)
_, headerFields := decode(headerStream.dataWritten.Bytes())
// 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"`),
))
Expect(headerFields).To(HaveKeyWithValue("cookie", `Cookie #1="Value #1"; Cookie #2="Value #2"`))
})
})