File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -178,16 +178,16 @@ module Container
178
178
end
179
179
180
180
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 ) }
182
182
183
183
it "should not terminate a child process if it updates its state within the specified time" do
184
184
# 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 |
186
186
instance . ready!
187
187
188
188
10 . times do
189
189
instance . ready!
190
- sleep ( 0.01 )
190
+ sleep ( 0.5 )
191
191
end
192
192
end
193
193
@@ -197,11 +197,11 @@ module Container
197
197
end
198
198
199
199
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 |
201
201
instance . ready!
202
202
203
203
# This should trigger the health check - since restart is false, the process will be terminated:
204
- sleep ( 1 )
204
+ sleep ( 2.0 )
205
205
end
206
206
207
207
container . wait
You can’t perform that action at this time.
0 commit comments