mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-05-23 06:54:58 +03:00
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:
parent
cb49e7701f
commit
8f2c2dea3c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user