File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,10 @@ module Concurrent
2828 end
2929
3030 specify '#terminate_pools! acts on all executors with auto_terminate: true' do
31- expect ( Concurrent . global_fast_executor ) . to receive ( :kill ) . once . with ( no_args ) . and_call_original
32- expect ( Concurrent . global_io_executor ) . to receive ( :kill ) . once . with ( no_args ) . and_call_original
33- expect ( Concurrent . global_timer_set ) . to receive ( :kill ) . once . with ( no_args ) . and_call_original
31+ # The 'at_least(:once)' clauses account for global config reset
32+ expect ( Concurrent . global_fast_executor ) . to receive ( :kill ) . at_least ( :once ) . with ( no_args ) . and_call_original
33+ expect ( Concurrent . global_io_executor ) . to receive ( :kill ) . at_least ( :once ) . with ( no_args ) . and_call_original
34+ expect ( Concurrent . global_timer_set ) . to receive ( :kill ) . at_least ( :once ) . with ( no_args ) . and_call_original
3435 Concurrent . terminate_pools!
3536 end
3637 end
You can’t perform that action at this time.
0 commit comments