Skip to content

Commit f74aece

Browse files
committed
Fix wrong expected exception in spec assertion
It's pretty straightforward that an `ArgumentError` is raised here. I wonder if this was changed to `RejectedExecutionError` because somehow that was happening instead due to cross-spec interference.
1 parent 0ee31d0 commit f74aece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/concurrent/channel_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ module Concurrent
595595
it 'raises an exception when no block is given' do
596596
expect {
597597
Channel.go_loop
598-
}.to raise_error(RejectedExecutionError)
598+
}.to raise_error(ArgumentError)
599599
end
600600

601601
it 'loops until the block returns false' do

0 commit comments

Comments
 (0)