DEV: correct flaky test, insufficient timeout

DEV: correct flaky test, insufficient timeout

In some cases with all the new mitigations the 10ms delay is no longer enough. Wait up to 1 second here instead.

diff --git a/spec/components/scheduler/defer_spec.rb b/spec/components/scheduler/defer_spec.rb
index 5b8333c..f93b8a0 100644
--- a/spec/components/scheduler/defer_spec.rb
+++ b/spec/components/scheduler/defer_spec.rb
@@ -85,7 +85,7 @@ describe Scheduler::Defer do
       x = 3
     end
 
-    wait_for(10) do
+    wait_for(1000) do
       x == 3
     end

GitHub sha: 170c66c1

1 Like