From d7b6b1c956a960685abace078f151b3e2a954f8b Mon Sep 17 00:00:00 2001 From: Maurice van Veen Date: Mon, 6 Jan 2025 23:24:34 +0100 Subject: [PATCH] De-flake TestJetStreamClusterRedeliverBackoffs Signed-off-by: Maurice van Veen --- server/jetstream_cluster_2_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/jetstream_cluster_2_test.go b/server/jetstream_cluster_2_test.go index 9164175a589..ca485ba23c7 100644 --- a/server/jetstream_cluster_2_test.go +++ b/server/jetstream_cluster_2_test.go @@ -4212,7 +4212,7 @@ func TestJetStreamClusterRedeliverBackoffs(t *testing.T) { d := tr.Sub(start) // Adjust start for next calcs. start = start.Add(d) - if d < expected[i] || d > expected[i]*2 { + if d < expected[i]-5*time.Millisecond || d > expected[i]*2+5*time.Millisecond { t.Fatalf("Timing is off for %d, expected ~%v, but got %v", i, expected[i], d) } }