File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -178,16 +178,16 @@ module Container
178178 end
179179
180180 with "health_check_timeout:" do
181- let ( :container ) { subject . new ( health_check_interval : 0.01 ) }
181+ let ( :container ) { subject . new ( health_check_interval : 1.0 ) }
182182
183183 it "should not terminate a child process if it updates its state within the specified time" do
184184 # We use #run here to hit the Hybrid container code path:
185- container . run ( count : 1 , health_check_timeout : 0.02 ) do |instance |
185+ container . run ( count : 1 , health_check_timeout : 1.0 ) do |instance |
186186 instance . ready!
187187
188188 10 . times do
189189 instance . ready!
190- sleep ( 0.01 )
190+ sleep ( 0.5 )
191191 end
192192 end
193193
@@ -197,11 +197,11 @@ module Container
197197 end
198198
199199 it "can terminate a child process if it does not update its state within the specified time" do
200- container . spawn ( health_check_timeout : 0.01 ) do |instance |
200+ container . spawn ( health_check_timeout : 1.0 ) do |instance |
201201 instance . ready!
202202
203203 # This should trigger the health check - since restart is false, the process will be terminated:
204- sleep ( 1 )
204+ sleep ( 2.0 )
205205 end
206206
207207 container . wait
Original file line number Diff line number Diff line change @@ -25,18 +25,18 @@ def controller.setup(container)
2525 container . spawn ( key : "test" ) do |instance |
2626 instance . ready!
2727
28- sleep ( 0.02 )
28+ sleep ( 0.2 )
2929
3030 @output . write ( "." )
3131 @output . flush
3232
33- sleep ( 0.04 )
33+ sleep ( 0.4 )
3434 end
3535
3636 container . spawn do |instance |
3737 instance . ready!
3838
39- sleep ( 0.03 )
39+ sleep ( 0.3 )
4040
4141 @output . write ( "," )
4242 @output . flush
You can’t perform that action at this time.
0 commit comments