From 10dd6e139d7605f0b539fe81c30207484c34e2c0 Mon Sep 17 00:00:00 2001 From: Joshua Hawxwell Date: Tue, 24 Sep 2024 10:28:19 +0100 Subject: [PATCH] Increase resolution used for scheduled testing as it fails sometimes --- internal/scheduled/runner_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/scheduled/runner_test.go b/internal/scheduled/runner_test.go index f552a627fd..05cea0f5cd 100644 --- a/internal/scheduled/runner_test.go +++ b/internal/scheduled/runner_test.go @@ -23,8 +23,8 @@ var ( testNowFn = func() time.Time { return testNow } // set resolution lower to make tests more accurate, but the clock won't be - // perfect so 2ms seems a reasonable trade-off - resolution = 2 * time.Millisecond + // perfect so 3ms seems a reasonable trade-off + resolution = 3 * time.Millisecond // set period higher to make tests more accurate, but that will make them // slower period = 20 * resolution