From 0ffaaff8a7ed72184f85992c842e482b7f3c1c3a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 Jan 2025 13:21:31 +0530 Subject: [PATCH] Fix #8220 --- tools/rsync/api_test.go | 6 +++--- tools/utils/sockets_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/rsync/api_test.go b/tools/rsync/api_test.go index 575092de7..8aed9193e 100644 --- a/tools/rsync/api_test.go +++ b/tools/rsync/api_test.go @@ -183,14 +183,14 @@ func TestRsyncHashers(t *testing.T) { h := new_xxh3_64() h.Write([]byte("abcd")) if diff := cmp.Diff(hex.EncodeToString(h.Sum(nil)), `6497a96f53a89890`); diff != "" { - t.Fatalf(diff) + t.Fatalf("%s", diff) } if diff := cmp.Diff(h.Sum64(), uint64(7248448420886124688)); diff != "" { - t.Fatalf(diff) + t.Fatalf("%s", diff) } h2 := new_xxh3_128() h2.Write([]byte("abcd")) if diff := cmp.Diff(hex.EncodeToString(h2.Sum(nil)), `8d6b60383dfa90c21be79eecd1b1353d`); diff != "" { - t.Fatalf(diff) + t.Fatalf("%s", diff) } } diff --git a/tools/utils/sockets_test.go b/tools/utils/sockets_test.go index 08bd35048..d0cd7fb31 100644 --- a/tools/utils/sockets_test.go +++ b/tools/utils/sockets_test.go @@ -39,7 +39,7 @@ func TestParseSocketAddress(t *testing.T) { test(spec) } teste := func(spec string, e string) { - eerr = fmt.Errorf(e) + eerr = fmt.Errorf("%s", e) test(spec) }