mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
app/vmselect: fix tests for rate_over_sum
This commit is contained in:
parent
3107c633e3
commit
e151c5c644
1 changed files with 2 additions and 2 deletions
|
@ -393,7 +393,7 @@ func TestRollupNewRollupFuncSuccess(t *testing.T) {
|
||||||
f("descent_over_time", 231)
|
f("descent_over_time", 231)
|
||||||
f("timestamp", 0.13)
|
f("timestamp", 0.13)
|
||||||
f("mode_over_time", 34)
|
f("mode_over_time", 34)
|
||||||
f("rate_over_sum", 3843.478260869565)
|
f("rate_over_sum", 3536)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRollupNewRollupFuncError(t *testing.T) {
|
func TestRollupNewRollupFuncError(t *testing.T) {
|
||||||
|
@ -978,7 +978,7 @@ func TestRollupFuncsNoWindow(t *testing.T) {
|
||||||
}
|
}
|
||||||
rc.Timestamps = getTimestamps(rc.Start, rc.End, rc.Step)
|
rc.Timestamps = getTimestamps(rc.Start, rc.End, rc.Step)
|
||||||
values := rc.Do(nil, testValues, testTimestamps)
|
values := rc.Do(nil, testValues, testTimestamps)
|
||||||
valuesExpected := []float64{nan, 4238.095238095238, 3738.461538461538, 4059.523809523809, 6200}
|
valuesExpected := []float64{nan, 2870.967741935484, 3240, 4059.523809523809, 6200}
|
||||||
timestampsExpected := []int64{0, 40, 80, 120, 160}
|
timestampsExpected := []int64{0, 40, 80, 120, 160}
|
||||||
testRowsEqual(t, values, rc.Timestamps, valuesExpected, timestampsExpected)
|
testRowsEqual(t, values, rc.Timestamps, valuesExpected, timestampsExpected)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue