package storage: fix up test not to access Labels internals
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
a35e54cc56
commit
faac4c066d
|
@ -76,10 +76,7 @@ func TestChunkSeriesSetToSeriesSet(t *testing.T) {
|
||||||
samples []tsdbutil.Sample
|
samples []tsdbutil.Sample
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
lbs: labels.Labels{
|
lbs: labels.FromStrings("__name__", "up", "instance", "localhost:8080"),
|
||||||
{Name: "__name__", Value: "up"},
|
|
||||||
{Name: "instance", Value: "localhost:8080"},
|
|
||||||
},
|
|
||||||
samples: []tsdbutil.Sample{
|
samples: []tsdbutil.Sample{
|
||||||
sample{t: 1, v: 1},
|
sample{t: 1, v: 1},
|
||||||
sample{t: 2, v: 2},
|
sample{t: 2, v: 2},
|
||||||
|
@ -87,10 +84,7 @@ func TestChunkSeriesSetToSeriesSet(t *testing.T) {
|
||||||
sample{t: 4, v: 4},
|
sample{t: 4, v: 4},
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
lbs: labels.Labels{
|
lbs: labels.FromStrings("__name__", "up", "instance", "localhost:8081"),
|
||||||
{Name: "__name__", Value: "up"},
|
|
||||||
{Name: "instance", Value: "localhost:8081"},
|
|
||||||
},
|
|
||||||
samples: []tsdbutil.Sample{
|
samples: []tsdbutil.Sample{
|
||||||
sample{t: 1, v: 2},
|
sample{t: 1, v: 2},
|
||||||
sample{t: 2, v: 3},
|
sample{t: 2, v: 3},
|
||||||
|
|
Loading…
Reference in New Issue