mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 14:39:40 -08:00
Merge pull request #2577 from prometheus/beorn7/storage2
storage: Fix `go vet` error
This commit is contained in:
commit
a874556a66
|
@ -657,14 +657,18 @@ func TestMetricsForLabelMatchersIgnoresRemoteData(t *testing.T) {
|
||||||
model.MetricNameLabel: "testmetric",
|
model.MetricNameLabel: "testmetric",
|
||||||
"testlabel": "testvalue1",
|
"testlabel": "testvalue1",
|
||||||
},
|
},
|
||||||
Values: []model.SamplePair{{1, 1}},
|
Values: []model.SamplePair{{
|
||||||
|
Timestamp: 1, Value: 1,
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
&model.SampleStream{
|
&model.SampleStream{
|
||||||
Metric: model.Metric{
|
Metric: model.Metric{
|
||||||
model.MetricNameLabel: "testmetric",
|
model.MetricNameLabel: "testmetric",
|
||||||
"testlabel": "testvalue2",
|
"testlabel": "testvalue2",
|
||||||
},
|
},
|
||||||
Values: []model.SamplePair{{1, 1}},
|
Values: []model.SamplePair{{
|
||||||
|
Timestamp: 1, Value: 1,
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -676,14 +680,18 @@ func TestMetricsForLabelMatchersIgnoresRemoteData(t *testing.T) {
|
||||||
model.MetricNameLabel: "testmetric",
|
model.MetricNameLabel: "testmetric",
|
||||||
"testlabel": "testvalue2",
|
"testlabel": "testvalue2",
|
||||||
},
|
},
|
||||||
Values: []model.SamplePair{{1, 1}},
|
Values: []model.SamplePair{{
|
||||||
|
Timestamp: 1, Value: 1,
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
&model.SampleStream{
|
&model.SampleStream{
|
||||||
Metric: model.Metric{
|
Metric: model.Metric{
|
||||||
model.MetricNameLabel: "testmetric",
|
model.MetricNameLabel: "testmetric",
|
||||||
"testlabel": "testvalue3",
|
"testlabel": "testvalue3",
|
||||||
},
|
},
|
||||||
Values: []model.SamplePair{{1, 1}},
|
Values: []model.SamplePair{{
|
||||||
|
Timestamp: 1, Value: 1,
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue