Skip to content

Commit 430a805

Browse files
committed
Fix intermittently deadlocking #post_off test
1 parent 14deab8 commit 430a805

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/concurrent/agent_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ module Concurrent
2020
end
2121

2222
context '#send_off' do
23-
subject { Agent.new 2 }
23+
subject { Agent.new 2, executor: executor }
2424

2525
it 'executes post and post-off in order' do
26-
pending 'may cause deadlock'
2726
subject.post { |v| v + 2 }
2827
subject.post_off { |v| v * 3 }
2928
subject.await

0 commit comments

Comments
 (0)