mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-30 15:22:07 +00:00
app/vmselect/promql: fix tests after 2dae0a2c47
This commit is contained in:
parent
fb82c4b9fa
commit
82aab87446
1 changed files with 10 additions and 8 deletions
|
@ -57,10 +57,11 @@ func TestExecSuccess(t *testing.T) {
|
||||||
f := func(q string, resultExpected []netstorage.Result) {
|
f := func(q string, resultExpected []netstorage.Result) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
ec := &EvalConfig{
|
ec := &EvalConfig{
|
||||||
Start: start,
|
Start: start,
|
||||||
End: end,
|
End: end,
|
||||||
Step: step,
|
Step: step,
|
||||||
Deadline: searchutils.NewDeadline(time.Now(), time.Minute, ""),
|
Deadline: searchutils.NewDeadline(time.Now(), time.Minute, ""),
|
||||||
|
RoundDigits: 100,
|
||||||
}
|
}
|
||||||
for i := 0; i < 5; i++ {
|
for i := 0; i < 5; i++ {
|
||||||
result, err := Exec(ec, q, false)
|
result, err := Exec(ec, q, false)
|
||||||
|
@ -6575,10 +6576,11 @@ func TestExecError(t *testing.T) {
|
||||||
f := func(q string) {
|
f := func(q string) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
ec := &EvalConfig{
|
ec := &EvalConfig{
|
||||||
Start: 1000,
|
Start: 1000,
|
||||||
End: 2000,
|
End: 2000,
|
||||||
Step: 100,
|
Step: 100,
|
||||||
Deadline: searchutils.NewDeadline(time.Now(), time.Minute, ""),
|
Deadline: searchutils.NewDeadline(time.Now(), time.Minute, ""),
|
||||||
|
RoundDigits: 100,
|
||||||
}
|
}
|
||||||
for i := 0; i < 4; i++ {
|
for i := 0; i < 4; i++ {
|
||||||
rv, err := Exec(ec, q, false)
|
rv, err := Exec(ec, q, false)
|
||||||
|
|
Loading…
Reference in a new issue