mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-22 19:26:56 -08:00
promql/tests: couple more labels.FromStrings
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
8a7ef4cfac
commit
0679437825
|
@ -3114,17 +3114,11 @@ func TestRangeQuery(t *testing.T) {
|
|||
Result: Matrix{
|
||||
Series{
|
||||
Points: []Point{{V: 1, T: 0}, {V: 3, T: 60000}, {V: 5, T: 120000}},
|
||||
Metric: labels.Labels{
|
||||
labels.Label{Name: "__name__", Value: "bar"},
|
||||
labels.Label{Name: "job", Value: "2"},
|
||||
},
|
||||
Metric: labels.FromStrings("__name__", "bar", "job", "2"),
|
||||
},
|
||||
Series{
|
||||
Points: []Point{{V: 3, T: 60000}, {V: 5, T: 120000}},
|
||||
Metric: labels.Labels{
|
||||
labels.Label{Name: "__name__", Value: "foo"},
|
||||
labels.Label{Name: "job", Value: "1"},
|
||||
},
|
||||
Metric: labels.FromStrings("__name__", "foo", "job", "1"),
|
||||
},
|
||||
},
|
||||
Start: time.Unix(0, 0),
|
||||
|
|
Loading…
Reference in a new issue