diff --git a/tests/discard/test-discard.pl b/tests/discard/test-discard.pl index 5e2f879c0..dbcf6a5b3 100755 --- a/tests/discard/test-discard.pl +++ b/tests/discard/test-discard.pl @@ -106,7 +106,7 @@ die "$0: surprising result: full size <= original size\n" # Remove the file and check the filesystem is trimmed automatically. $g->rm ("/data"); -$g->sync (); +$g->shutdown (); $g->close (); my $trimmed_size = (stat ($disk))[12]; diff --git a/tests/discard/test-fstrim.pl b/tests/discard/test-fstrim.pl index 30bb855b3..cbd28bfb2 100755 --- a/tests/discard/test-fstrim.pl +++ b/tests/discard/test-fstrim.pl @@ -114,7 +114,7 @@ die "$0: surprising result: full size <= original size\n" $g->rm ("/data"); $g->fstrim ("/"); -$g->sync (); +$g->shutdown (); $g->close (); my $trimmed_size = (stat ($disk))[12];