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
28
28
end
29
29
30
30
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
34
35
Concurrent . terminate_pools!
35
36
end
36
37
end
You can’t perform that action at this time.
0 commit comments