Minor update
This commit is contained in:
parent
1498b6d8a2
commit
e6335da94f
@ -1,7 +1,6 @@
|
|||||||
package memory
|
package memory
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -88,7 +87,7 @@ func TestStore_Insert(t *testing.T) {
|
|||||||
if store.cache.Count() != 1 {
|
if store.cache.Count() != 1 {
|
||||||
t.Fatalf("expected 1 ServiceStatus, got %d", store.cache.Count())
|
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)
|
serviceStatus := store.GetServiceStatusByKey(key)
|
||||||
if serviceStatus == nil {
|
if serviceStatus == nil {
|
||||||
t.Fatalf("Store should've had key '%s', but didn't", key)
|
t.Fatalf("Store should've had key '%s', but didn't", key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user