Browse Source

Fix some gofmt warnings (#8743)

Signed-off-by: Zou Yu <zouy.fnst@cn.fujitsu.com>
pull/7516/head^2
ZouYu 4 years ago committed by GitHub
parent
commit
c7262f0d70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      storage/remote/metadata_watcher_test.go
  2. 2
      storage/remote/queue_manager_test.go

4
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},
},
}

2
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",

Loading…
Cancel
Save