diff --git a/storage/remote/metadata_watcher_test.go b/storage/remote/metadata_watcher_test.go index 4577eb8f6..c8114fbd6 100644 --- a/storage/remote/metadata_watcher_test.go +++ b/storage/remote/metadata_watcher_test.go @@ -137,8 +137,8 @@ func TestWatchScrapeManager_ReadyForCollection(t *testing.T) { manager := &fakeManager{ activeTargets: map[string][]*scrape.Target{ - "job": []*scrape.Target{target}, - "dup": []*scrape.Target{targetWithDup}, + "job": {target}, + "dup": {targetWithDup}, }, } diff --git a/storage/remote/queue_manager_test.go b/storage/remote/queue_manager_test.go index d4682f63e..0ac594ffa 100644 --- a/storage/remote/queue_manager_test.go +++ b/storage/remote/queue_manager_test.go @@ -128,7 +128,7 @@ func TestMetadataDelivery(t *testing.T) { defer m.Stop() m.AppendMetadata(context.Background(), []scrape.MetricMetadata{ - scrape.MetricMetadata{ + { Metric: "prometheus_remote_storage_sent_metadata_bytes_total", Type: textparse.MetricTypeCounter, Help: "a nice help text",