Skip to content

Commit 5b8e99b

Browse files
committed
Updated brittle Supervisor specs.
1 parent c6c8701 commit 5b8e99b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/concurrent/supervisor_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,8 @@ def mock_thread(status = 'run')
447447
it 'returns the count of all workers terminated by exception as #abend' do
448448
busy_supervisor.count.abend.should eq 0
449449
busy_supervisor.run!
450-
sleep(0.5)
450+
stoppers.each{|stopper| stopper.latch.wait(1) }
451+
sleep(0.1)
451452

452453
busy_supervisor.count.abend.should eq abend_count
453454
end

0 commit comments

Comments
 (0)