diff --git a/pkg/caches/neighbors_test.go b/pkg/caches/neighbors_test.go index 89926d1..c6fc65a 100644 --- a/pkg/caches/neighbors_test.go +++ b/pkg/caches/neighbors_test.go @@ -16,7 +16,7 @@ func TestNeighborsCacheSetGet(t *testing.T) { response := &api.NeighborsResponse{ Response: api.Response{ - Meta: api.Meta{ + Meta: &api.Meta{ TTL: time.Now().UTC().Add(23 * time.Millisecond), }, }, diff --git a/pkg/caches/routes_test.go b/pkg/caches/routes_test.go index b084eab..f595932 100644 --- a/pkg/caches/routes_test.go +++ b/pkg/caches/routes_test.go @@ -12,7 +12,7 @@ func TestRoutesCacheSetGet(t *testing.T) { response := &api.RoutesResponse{ Response: api.Response{ - Meta: api.Meta{ + Meta: &api.Meta{ TTL: time.Now().UTC().Add(23 * time.Millisecond), }, }, @@ -44,7 +44,7 @@ func TestRoutesCacheLru(t *testing.T) { response := &api.RoutesResponse{ Response: api.Response{ - Meta: api.Meta{ + Meta: &api.Meta{ TTL: time.Now().UTC().Add(23 * time.Millisecond), }, },