# 3. Verify scrub failed until the resilver completed
#
# NOTES:
-# A 1 second delay is added to 10% of zio's in order to ensure that
-# the resilver does not complete before the scrub can be issue. This
+# A 10ms delay is added to 10% of zio's in order to ensure that the
+# resilver does not complete before the scrub can be issued. This
# can occur when testing with small pools or very fast hardware.
verify_runnable "global"
log_assert "Resilver prevent scrub from starting until the resilver completes"
-log_must $ZINJECT -d $DISK1 -f10 -D1 $TESTPOOL
log_must $ZPOOL detach $TESTPOOL $DISK2
+log_must $ZINJECT -d $DISK1 -D10:1 $TESTPOOL
log_must $ZPOOL attach $TESTPOOL $DISK1 $DISK2
log_must is_pool_resilvering $TESTPOOL
log_mustnot $ZPOOL scrub $TESTPOOL