updated usage of Meta

This commit is contained in:
Annika Hannig 2021-10-27 18:04:35 +00:00
parent b4aed3496c
commit d9aae37f7e
No known key found for this signature in database
GPG Key ID: 62E226E47DDCE58D
2 changed files with 3 additions and 3 deletions

View File

@ -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),
},
},

View File

@ -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),
},
},