mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +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
(cherry picked from commit 8f2c2dea3c)
			
			
This commit is contained in:
		
							parent
							
								
									03ac770008
								
							
						
					
					
						commit
						b590bfc6c8
					
				| @ -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
	 Alexander Motin
						Alexander Motin