Skip to content

Commit

Permalink
Wait for 1 sec before check trim status
Browse files Browse the repository at this point in the history
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
  • Loading branch information
davidchenntnx committed Apr 11, 2018
1 parent e30979e commit aee5c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/zfs-tests/tests/functional/trim/trim.kshlib
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function do_trim # pool options
typeset stop_time=$(( $(date +%s) + 30 ))

log_must zpool trim $options $pool

sleep 1
while true; do
typeset status=$(zpool status $pool | awk '/trim:/ {print $2}')
if [ -z "$status" ]; then
Expand Down

0 comments on commit aee5c52

Please sign in to comment.