mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Fix some gofmt warnings (#8743)
Signed-off-by: Zou Yu <zouy.fnst@cn.fujitsu.com>
This commit is contained in:
parent
7a2159e308
commit
c7262f0d70
|
@ -137,8 +137,8 @@ func TestWatchScrapeManager_ReadyForCollection(t *testing.T) {
|
||||||
|
|
||||||
manager := &fakeManager{
|
manager := &fakeManager{
|
||||||
activeTargets: map[string][]*scrape.Target{
|
activeTargets: map[string][]*scrape.Target{
|
||||||
"job": []*scrape.Target{target},
|
"job": {target},
|
||||||
"dup": []*scrape.Target{targetWithDup},
|
"dup": {targetWithDup},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ func TestMetadataDelivery(t *testing.T) {
|
||||||
defer m.Stop()
|
defer m.Stop()
|
||||||
|
|
||||||
m.AppendMetadata(context.Background(), []scrape.MetricMetadata{
|
m.AppendMetadata(context.Background(), []scrape.MetricMetadata{
|
||||||
scrape.MetricMetadata{
|
{
|
||||||
Metric: "prometheus_remote_storage_sent_metadata_bytes_total",
|
Metric: "prometheus_remote_storage_sent_metadata_bytes_total",
|
||||||
Type: textparse.MetricTypeCounter,
|
Type: textparse.MetricTypeCounter,
|
||||||
Help: "a nice help text",
|
Help: "a nice help text",
|
||||||
|
|
Loading…
Reference in a new issue