diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index bb2f39e508..4f414c3c03 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -93,6 +93,7 @@ use RecursiveCopy; use Socket; use Test::More; use TestLib (); +use Time::HiRes qw(usleep); use Scalar::Util qw(blessed); our @EXPORT = qw( @@ -1248,7 +1249,7 @@ sub poll_query_until } # Wait 0.1 second before retrying. - select undef, undef, undef, 0.1; + usleep(100000); $attempts++; }