Skip to content

Commit 8f2c2de

Browse files
authored
ZTS: Remove fixed sleeps from slog_006_pos
Replace `sleep 15` with `zpool wait`, which should take much less than the 15 seconds. And considering it is called 16 times, this should save us up to 4 minutes total. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes: #17257
1 parent cb49e77 commit 8f2c2de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/zfs-tests/tests/functional/slog/slog_006_pos.ksh

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ do
6161
tdev=$(random_get $LDEV2)
6262
log_must zpool replace $TESTPOOL $sdev $tdev
6363
log_must display_status $TESTPOOL
64-
# sleep 15 to make sure replacement completely.
65-
log_must sleep 15
64+
log_must zpool wait $TESTPOOL
6665
log_must verify_slog_device \
6766
$TESTPOOL $tdev 'ONLINE' $logtype
6867

0 commit comments

Comments
 (0)