aboutsummaryrefslogtreecommitdiff
path: root/status_timing_test.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2022-04-01 18:11:16 +0200
committerGravatar GitHub <noreply@github.com> 2022-04-01 18:11:16 +0200
commit7a5afddf5b805a022f8e81281c772c11600da2f4 (patch)
tree76ecbf4981921328d823eb925e57f874f52c34f2 /status_timing_test.go
parentsupport adding/removing clients from LBClient (#1243) (diff)
downloadfasthttp-7a5afddf5b805a022f8e81281c772c11600da2f4.tar.gz
fasthttp-7a5afddf5b805a022f8e81281c772c11600da2f4.tar.bz2
fasthttp-7a5afddf5b805a022f8e81281c772c11600da2f4.zip
Use %v for errors and %q for strings (#1262)v1.35.0
Mostly in tests.
Diffstat (limited to 'status_timing_test.go')
-rw-r--r--status_timing_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/status_timing_test.go b/status_timing_test.go
index d2ec34a..e35d8ce 100644
--- a/status_timing_test.go
+++ b/status_timing_test.go
@@ -22,7 +22,7 @@ func benchmarkStatusLine(b *testing.B, statusCode int, expected []byte) {
for pb.Next() {
line := formatStatusLine(nil, strHTTP11, statusCode, s2b(StatusMessage(statusCode)))
if !bytes.Equal(expected, line) {
- b.Fatalf("unexpected status line %s. Expecting %s", string(line), string(expected))
+ b.Fatalf("unexpected status line %q. Expecting %q", string(line), string(expected))
}
}
})