mirror of
https://gitee.com/johng/gf
synced 2026-07-01 19:31:23 +08:00
make unit test compatible with go 1.15
This commit is contained in:
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user