Skip to content

Commit a36aa32

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 a36aa32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/concurrent/channel_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ module Concurrent
557557
end
558558
end
559559

560-
context 'goroutines', notravis: true do
560+
context 'goroutines' do
561561

562562
let(:default_executor) { Channel.const_get(:GOROUTINES) }
563563

@@ -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)