File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def start
18
18
19
19
def stop
20
20
@stopped = true
21
- wake_up if running_async?
21
+ wake_up
22
22
23
23
@thread &.join
24
24
end
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ def register_signal_handlers
29
29
%w[ INT TERM ] . each do |signal |
30
30
trap ( signal ) do
31
31
stop
32
- interrupt
33
32
end
34
33
end
35
34
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def metadata
20
20
end
21
21
22
22
private
23
- SLEEP_INTERVAL = 300 # Right now it doesn't matter, can be set to 1 in the future for dynamic tasks
23
+ SLEEP_INTERVAL = 60 # Right now it doesn't matter, can be set to 1 in the future for dynamic tasks
24
24
25
25
def run
26
26
loop do
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class PluginTest < ActiveSupport::TestCase
19
19
exec ( *cmd )
20
20
end
21
21
end
22
- wait_for_registered_processes ( 4 , timeout : 3 . second )
22
+ wait_for_registered_processes 5 , timeout : 3 . second
23
23
end
24
24
25
25
teardown do
@@ -38,7 +38,7 @@ class PluginTest < ActiveSupport::TestCase
38
38
signal_process ( @pid , :SIGUSR2 )
39
39
# Ensure the restart finishes before we try to continue with the test
40
40
wait_for_registered_processes ( 0 , timeout : 3 . second )
41
- wait_for_registered_processes ( 4 , timeout : 3 . second )
41
+ wait_for_registered_processes ( 5 , timeout : 3 . second )
42
42
43
43
StoreResultJob . perform_later ( :puma_plugin )
44
44
wait_for_jobs_to_finish_for ( 2 . seconds )
You can’t perform that action at this time.
0 commit comments