File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -832,8 +832,8 @@ def mock_thread(status = 'run')
832
832
monitor_interval : 0.1 )
833
833
supervisor . add_worker ( error_class . new )
834
834
supervisor . should_receive ( :exceeded_max_restart_frequency? ) . once . and_return ( true )
835
- supervisor . run!
836
- sleep ( 0.2 )
835
+ future = Concurrent :: Future . execute { supervisor . run }
836
+ future . value ( 1 )
837
837
supervisor . should_not be_running
838
838
end
839
839
@@ -842,8 +842,8 @@ def mock_thread(status = 'run')
842
842
monitor_interval : 0.1 )
843
843
supervisor . add_worker ( error_class . new )
844
844
supervisor . should_receive ( :exceeded_max_restart_frequency? ) . once . and_return ( true )
845
- supervisor . run!
846
- sleep ( 0.2 )
845
+ future = Concurrent :: Future . execute { supervisor . run }
846
+ future . value ( 1 )
847
847
supervisor . should_not be_running
848
848
end
849
849
@@ -852,8 +852,8 @@ def mock_thread(status = 'run')
852
852
monitor_interval : 0.1 )
853
853
supervisor . add_worker ( error_class . new )
854
854
supervisor . should_receive ( :exceeded_max_restart_frequency? ) . once . and_return ( true )
855
- supervisor . run!
856
- sleep ( 0.2 )
855
+ future = Concurrent :: Future . execute { supervisor . run }
856
+ future . value ( 1 )
857
857
supervisor . should_not be_running
858
858
end
859
859
end
You can’t perform that action at this time.
0 commit comments