diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2022-04-01 18:11:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 18:11:16 +0200 |
commit | 7a5afddf5b805a022f8e81281c772c11600da2f4 (patch) | |
tree | 76ecbf4981921328d823eb925e57f874f52c34f2 /cookie_timing_test.go | |
parent | support adding/removing clients from LBClient (#1243) (diff) | |
download | fasthttp-7a5afddf5b805a022f8e81281c772c11600da2f4.tar.gz fasthttp-7a5afddf5b805a022f8e81281c772c11600da2f4.tar.bz2 fasthttp-7a5afddf5b805a022f8e81281c772c11600da2f4.zip |
Mostly in tests.
Diffstat (limited to 'cookie_timing_test.go')
-rw-r--r-- | cookie_timing_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cookie_timing_test.go b/cookie_timing_test.go index bcf958c..1af2687 100644 --- a/cookie_timing_test.go +++ b/cookie_timing_test.go @@ -9,7 +9,7 @@ func BenchmarkCookieParseMin(b *testing.B) { s := []byte("xxx=yyy") for i := 0; i < b.N; i++ { if err := c.ParseBytes(s); err != nil { - b.Fatalf("unexpected error when parsing cookies: %s", err) + b.Fatalf("unexpected error when parsing cookies: %v", err) } } } @@ -19,7 +19,7 @@ func BenchmarkCookieParseNoExpires(b *testing.B) { s := []byte("xxx=yyy; domain=foobar.com; path=/a/b") for i := 0; i < b.N; i++ { if err := c.ParseBytes(s); err != nil { - b.Fatalf("unexpected error when parsing cookies: %s", err) + b.Fatalf("unexpected error when parsing cookies: %v", err) } } } @@ -29,7 +29,7 @@ func BenchmarkCookieParseFull(b *testing.B) { s := []byte("xxx=yyy; expires=Tue, 10 Nov 2009 23:00:00 GMT; domain=foobar.com; path=/a/b") for i := 0; i < b.N; i++ { if err := c.ParseBytes(s); err != nil { - b.Fatalf("unexpected error when parsing cookies: %s", err) + b.Fatalf("unexpected error when parsing cookies: %v", err) } } } |