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 7a2159e308
commit c7262f0d70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -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