From c98cad6765c97c29b1eb6e0ea59ec1c0d5d5942a Mon Sep 17 00:00:00 2001 From: "Ben Sheldon [he/him]" Date: Sun, 21 May 2023 11:11:25 -0700 Subject: [PATCH] Fix flaky jruby test to widen time-based range (#961) --- spec/lib/good_job/adapter_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/good_job/adapter_spec.rb b/spec/lib/good_job/adapter_spec.rb index 0e1a64bce..cca320e54 100644 --- a/spec/lib/good_job/adapter_spec.rb +++ b/spec/lib/good_job/adapter_spec.rb @@ -128,7 +128,7 @@ def perform(succeed: true) expect(GoodJob::Job.last).to have_attributes( queue_name: 'elephant', priority: -55, - scheduled_at: be_within(0.1).of(10.minutes.from_now) + scheduled_at: be_within(1).of(10.minutes.from_now) ) end