diff --git a/app/vmselect/promql/exec_test.go b/app/vmselect/promql/exec_test.go index d1e8bed2b..87422184d 100644 --- a/app/vmselect/promql/exec_test.go +++ b/app/vmselect/promql/exec_test.go @@ -2400,6 +2400,7 @@ func TestExecSuccess(t *testing.T) { Timestamps: timestampsExpected, } r3 := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{200, 200, 200, 200, 200, 200}, Timestamps: timestampsExpected, } @@ -2428,6 +2429,7 @@ func TestExecSuccess(t *testing.T) { Timestamps: timestampsExpected, } r3 := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{1, 1, 1, 1, 1, 1}, Timestamps: timestampsExpected, } @@ -3376,6 +3378,7 @@ func TestExecSuccess(t *testing.T) { t.Parallel() q := `sort(histogram_over_time(alias(label_set(rand(0)*1.3+1.1, "foo", "bar"), "xxx")[200s:5s]))` r1 := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{13, 14, 12, 8, 12, 13}, Timestamps: timestampsExpected, } @@ -3390,6 +3393,7 @@ func TestExecSuccess(t *testing.T) { }, } r2 := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{14, 15, 12, 13, 15, 11}, Timestamps: timestampsExpected, } @@ -3404,6 +3408,7 @@ func TestExecSuccess(t *testing.T) { }, } r3 := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{13, 11, 16, 19, 13, 16}, Timestamps: timestampsExpected, } @@ -3424,6 +3429,7 @@ func TestExecSuccess(t *testing.T) { t.Parallel() q := `sort(sum(histogram_over_time(alias(label_set(rand(0)*1.3+1.1, "foo", "bar"), "xxx")[200s:5s])) by (vmrange))` r1 := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{13, 14, 12, 8, 12, 13}, Timestamps: timestampsExpected, } @@ -3434,6 +3440,7 @@ func TestExecSuccess(t *testing.T) { }, } r2 := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{14, 15, 12, 13, 15, 11}, Timestamps: timestampsExpected, } @@ -3444,6 +3451,7 @@ func TestExecSuccess(t *testing.T) { }, } r3 := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{13, 11, 16, 19, 13, 16}, Timestamps: timestampsExpected, } @@ -3460,6 +3468,7 @@ func TestExecSuccess(t *testing.T) { t.Parallel() q := `sum(histogram_over_time(alias(label_set(rand(0)*1.3+1.1, "foo", "bar"), "xxx")[200s:5s]))` r := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{40, 40, 40, 40, 40, 40}, Timestamps: timestampsExpected, } @@ -3470,6 +3479,7 @@ func TestExecSuccess(t *testing.T) { t.Parallel() q := `topk_max(1, histogram_over_time(alias(label_set(rand(0)*1.3+1.1, "foo", "bar"), "xxx")[200s:5s]))` r := netstorage.Result{ + MetricName: metricNameExpected, Values: []float64{13, 11, 16, 19, 13, 16}, Timestamps: timestampsExpected, }