Skip to content

Commit 1a02f0c

Browse files
committed
Verify job posts to global thread pool
1 parent c65962c commit 1a02f0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/concurrent/future_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ def get_ivar_from_args(opts)
8585
Future.execute(executor: executor){ nil }
8686
end
8787

88-
it 'uses the global io executor by default', buggy: true do
89-
expect(Concurrent).to receive(:global_io_executor).and_return(executor)
88+
it 'uses the global io executor by default' do
89+
allow(Concurrent).to receive(:global_io_executor).and_return(executor)
90+
expect(executor).to receive(:post).and_call_original
9091
Future.execute{ nil }
9192
end
9293
end

0 commit comments

Comments
 (0)