Skip to content

Commit 023f610

Browse files
committed
Ensure we wait until workers have a chance to deregister in lifecycle test
In CI the DB is slower and we might end up with a worker that didn't have a chance to finish deregistering.
1 parent fc08656 commit 023f610

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/integration/processes_lifecycle_test.rb

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class ProcessLifecycleTest < ActiveSupport::TestCase
3939

4040
signal_process(@pid, :KILL, wait: 0.15.seconds)
4141
wait_for_jobs_to_finish_for(2.seconds)
42+
wait_for_registered_processes(1, timeout: 3.second)
4243

4344
assert_not process_exists?(@pid)
4445

0 commit comments

Comments
 (0)