Fix some gofmt warnings (#8743)

Signed-off-by: Zou Yu <zouy.fnst@cn.fujitsu.com>
This commit is contained in:
ZouYu 2021-04-22 22:43:30 +08:00 committed by GitHub
parent 7a2159e308
commit c7262f0d70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

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

View file

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