From 3fbeee07fa79a80b4f4b6e8adc376da9cb8ac99a Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 22 Jan 2020 11:09:31 +0100 Subject: [PATCH] Fix flaky windows test (#6677) The windows clock is sometime off by 25ms, and as precise as 15ms. Let's give it more time to avoid flaky tests. Fix #6672 Signed-off-by: Julien Pivotto --- promql/engine_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/promql/engine_test.go b/promql/engine_test.go index b389743b15..7dcf42f446 100644 --- a/promql/engine_test.go +++ b/promql/engine_test.go @@ -99,7 +99,7 @@ func TestQueryTimeout(t *testing.T) { defer cancelCtx() query := engine.newTestQuery(func(ctx context.Context) error { - time.Sleep(50 * time.Millisecond) + time.Sleep(100 * time.Millisecond) return contextDone(ctx, "test statement execution") })