From 7ce3461ccc08c5e59274b1f88bd7df79e77ae2fd Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Sun, 16 Oct 2022 10:19:38 +0200 Subject: [PATCH] Update test again --- internal/transactions/transactions_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/transactions/transactions_test.go b/internal/transactions/transactions_test.go index 68a31caf5..c552550ac 100644 --- a/internal/transactions/transactions_test.go +++ b/internal/transactions/transactions_test.go @@ -15,6 +15,7 @@ package transactions import ( "net/http" "net/url" + "path/filepath" "reflect" "strconv" "testing" @@ -27,8 +28,10 @@ type fakeType struct { } func TestCompare(t *testing.T) { - c1 := CacheKey{"1", "2", ""} - c2 := CacheKey{"1", "2", ""} + u1, _ := url.Parse("/send/1?accessToken=123") + u2, _ := url.Parse("/send/1") + c1 := CacheKey{"1", "2", filepath.Dir(u1.Path)} + c2 := CacheKey{"1", "2", filepath.Dir(u2.Path)} if !reflect.DeepEqual(c1, c2) { t.Fatalf("Cache keys differ: %+v <> %+v", c1, c2) }