mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 06:29:42 -08:00
promql: Bump sleep in query timeout test
This test is flaky, I'm presuming the time.AfterFunc call is being delayed so the evaluation isn't getting cancelled.
This commit is contained in:
parent
29de4ee2b0
commit
ce7f31e03c
|
@ -70,7 +70,7 @@ func TestQueryTimeout(t *testing.T) {
|
||||||
defer engine.Stop()
|
defer engine.Stop()
|
||||||
|
|
||||||
query := engine.newTestQuery(func(ctx context.Context) error {
|
query := engine.newTestQuery(func(ctx context.Context) error {
|
||||||
time.Sleep(10 * time.Millisecond)
|
time.Sleep(50 * time.Millisecond)
|
||||||
return contextDone(ctx, "test statement execution")
|
return contextDone(ctx, "test statement execution")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue