From e6335da94f67df9a63d2ab28dde65a4f184f595a Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Mon, 12 Jul 2021 00:30:11 -0400 Subject: [PATCH] Minor update --- storage/store/memory/memory_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage/store/memory/memory_test.go b/storage/store/memory/memory_test.go index 584884b9..82500696 100644 --- a/storage/store/memory/memory_test.go +++ b/storage/store/memory/memory_test.go @@ -1,7 +1,6 @@ package memory import ( - "fmt" "testing" "time" @@ -88,7 +87,7 @@ func TestStore_Insert(t *testing.T) { if store.cache.Count() != 1 { t.Fatalf("expected 1 ServiceStatus, got %d", store.cache.Count()) } - key := fmt.Sprintf("%s_%s", testService.Group, testService.Name) + key := testService.Key() serviceStatus := store.GetServiceStatusByKey(key) if serviceStatus == nil { t.Fatalf("Store should've had key '%s', but didn't", key)