make unit test compatible with go 1.15

This commit is contained in:
于湛
2022-01-07 18:52:21 +08:00
parent 572e71d76a
commit d045b4d2f5

View File

@ -132,7 +132,7 @@ func Test_CookieOptionsDefault(t *testing.T) {
parts := strings.Split(r1.Header.Get("Set-Cookie"), "; ")
t.AssertEQ(len(parts), 3)
t.AssertIN(len(parts), []int{3, 4}) // For go < 1.16 cookie always output "SameSite", see: https://github.com/golang/go/commit/542693e00529fbb4248fac614ece68b127a5ec4d
})
}