aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/commit_ts/t/003_standby_2.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/modules/commit_ts/t/003_standby_2.pl')
-rw-r--r--src/test/modules/commit_ts/t/003_standby_2.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/modules/commit_ts/t/003_standby_2.pl b/src/test/modules/commit_ts/t/003_standby_2.pl
index 2fd561115cb..eccaf07561e 100644
--- a/src/test/modules/commit_ts/t/003_standby_2.pl
+++ b/src/test/modules/commit_ts/t/003_standby_2.pl
@@ -55,7 +55,8 @@ $master->append_conf('postgresql.conf', 'track_commit_timestamp = off');
$master->restart;
system_or_bail('pg_ctl', '-D', $standby->data_dir, 'promote');
-$standby->poll_query_until('postgres', "SELECT pg_is_in_recovery() <> true");
+$standby->poll_query_until('postgres', "SELECT NOT pg_is_in_recovery()")
+ or die "standby never exited recovery";
$standby->safe_psql('postgres', "create table t11()");
my $standby_ts = $standby->safe_psql('postgres',