aboutsummaryrefslogtreecommitdiff
path: root/status_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_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_test.go')
-rw-r--r--status_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/status_test.go b/status_test.go
index 512c884..ff794a3 100644
--- a/status_test.go
+++ b/status_test.go
@@ -19,6 +19,6 @@ func TestStatusLine(t *testing.T) {
func testStatusLine(t *testing.T, statusCode int, expected []byte) {
line := formatStatusLine(nil, strHTTP11, statusCode, s2b(StatusMessage(statusCode)))
if !bytes.Equal(expected, line) {
- t.Fatalf("unexpected status line %s. Expecting %s", string(line), string(expected))
+ t.Fatalf("unexpected status line %q. Expecting %q", string(line), string(expected))
}
}