aboutsummaryrefslogtreecommitdiff
path: root/args_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 /args_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 'args_test.go')
-rw-r--r--args_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/args_test.go b/args_test.go
index c780c3b..fc36541 100644
--- a/args_test.go
+++ b/args_test.go
@@ -237,7 +237,7 @@ func TestArgsWriteTo(t *testing.T) {
var w bytebufferpool.ByteBuffer
n, err := a.WriteTo(&w)
if err != nil {
- t.Fatalf("unexpected error: %s", err)
+ t.Fatalf("unexpected error: %v", err)
}
if n != int64(len(s)) {
t.Fatalf("unexpected n: %d. Expecting %d", n, len(s))
@@ -594,7 +594,7 @@ func TestArgsDeleteAll(t *testing.T) {
a.Add("q2", "1234")
a.Del("q1")
if a.Len() != 1 || a.Has("q1") {
- t.Fatalf("Expected q1 arg to be completely deleted. Current Args: %s", a.String())
+ t.Fatalf("Expected q1 arg to be completely deleted. Current Args: %q", a.String())
}
}