From 5896fbc39442282248c3a2860a6f9f05d340dc95 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Sun, 16 Oct 2022 10:17:57 +0200 Subject: [PATCH] Update compare test --- internal/transactions/transactions_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/transactions/transactions_test.go b/internal/transactions/transactions_test.go index 87d9f3140..68a31caf5 100644 --- a/internal/transactions/transactions_test.go +++ b/internal/transactions/transactions_test.go @@ -15,6 +15,7 @@ package transactions import ( "net/http" "net/url" + "reflect" "strconv" "testing" @@ -28,7 +29,9 @@ type fakeType struct { func TestCompare(t *testing.T) { c1 := CacheKey{"1", "2", ""} c2 := CacheKey{"1", "2", ""} - t.Logf("%v", c1 == c2) + if !reflect.DeepEqual(c1, c2) { + t.Fatalf("Cache keys differ: %+v <> %+v", c1, c2) + } } var (