Skip to content

Commit f258b38

Browse files
committed
test: double the timeout - see if that helps
1 parent bd93f1d commit f258b38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/regressions.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ test_wipe_slots1() {
283283
sbd -d ${D[1]} -n test-1 watch
284284
sbd_sleep 2
285285
sbd_wipe_disk ${D[1]}
286-
sbd_sleep $((${MSGWAIT_TIMEOUT} + ${WATCHDOG_TIMEOUT} * 2))
286+
sbd_sleep $((${MSGWAIT_TIMEOUT} * 2 + ${WATCHDOG_TIMEOUT} * 4))
287287
_in_log "watchdog fired"
288288
}
289289

@@ -294,7 +294,7 @@ test_wipe_slots2() {
294294
sbd -d ${D[1]} -w /dev/null -n test-1 watch
295295
sbd_sleep 2
296296
sbd_wipe_disk ${D[1]}
297-
sbd_sleep $((${MSGWAIT_TIMEOUT} + ${WATCHDOG_TIMEOUT} * 2))
297+
sbd_sleep $((${MSGWAIT_TIMEOUT} * 2 + ${WATCHDOG_TIMEOUT} * 4))
298298
_in_log "sysrq-trigger ('b')"
299299
_in_log "reboot (reboot)"
300300
}
@@ -341,7 +341,7 @@ test_timeout_action1() {
341341
SBD_TIMEOUT_ACTION=off sbd -d ${D[1]} -w /dev/null -n test-1 watch
342342
sbd_sleep 2
343343
sbd_wipe_disk ${D[1]}
344-
sbd_sleep $((${MSGWAIT_TIMEOUT} + ${WATCHDOG_TIMEOUT} * 2))
344+
sbd_sleep $((${MSGWAIT_TIMEOUT} * 2 + ${WATCHDOG_TIMEOUT} * 4))
345345
_in_log "sysrq-trigger ('o')"
346346
_in_log "reboot (poweroff)"
347347
}
@@ -353,7 +353,7 @@ test_timeout_action2() {
353353
SBD_TIMEOUT_ACTION=crashdump sbd -d ${D[1]} -w /dev/null -n test-1 watch
354354
sbd_sleep 2
355355
sbd_wipe_disk ${D[1]}
356-
sbd_sleep $((${MSGWAIT_TIMEOUT} + ${WATCHDOG_TIMEOUT} * 2))
356+
sbd_sleep $((${MSGWAIT_TIMEOUT} * 2 + ${WATCHDOG_TIMEOUT} * 4))
357357
_in_log "sysrq-trigger ('c')"
358358
}
359359

0 commit comments

Comments
 (0)