Adjust test_test.go to new Select return order

Signed-off-by: beorn7 <beorn@soundcloud.com>
This commit is contained in:
beorn7 2019-01-08 13:54:50 +01:00
parent d6841c52e0
commit 305f383af4

View file

@ -14,11 +14,12 @@
package promql package promql
import ( import (
"github.com/prometheus/prometheus/pkg/labels"
"math" "math"
"testing" "testing"
"time" "time"
"github.com/prometheus/prometheus/pkg/labels"
"github.com/prometheus/prometheus/util/testutil" "github.com/prometheus/prometheus/util/testutil"
) )
@ -132,7 +133,7 @@ func TestLazyLoader_WithSamplesTill(t *testing.T) {
} }
// Get the series for the matcher. // Get the series for the matcher.
ss, err, _ := querier.Select(nil, matchers...) ss, _, err := querier.Select(nil, matchers...)
testutil.Ok(t, err) testutil.Ok(t, err)
testutil.Assert(t, ss.Next(), "") testutil.Assert(t, ss.Next(), "")
storageSeries := ss.At() storageSeries := ss.At()