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 <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes: #17257
This commit is contained in:
Alexander Motin 2025-04-22 21:03:52 -04:00 committed by GitHub
parent cb49e7701f
commit 8f2c2dea3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,8 +61,7 @@ do
tdev=$(random_get $LDEV2)
log_must zpool replace $TESTPOOL $sdev $tdev
log_must display_status $TESTPOOL
# sleep 15 to make sure replacement completely.
log_must sleep 15
log_must zpool wait $TESTPOOL
log_must verify_slog_device \
$TESTPOOL $tdev 'ONLINE' $logtype