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.
pull/1080/head
Brian Brazil 9 years ago
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…
Cancel
Save