From f998b177dd329f1eda734a27433fd2aa559ec1f9 Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Sat, 8 Sep 2018 16:20:50 -0700 Subject: [PATCH] Fix logical subscriber wait in test. Buildfarm members sungazer and tern revealed this deficit. Back-patch to v10, like commit 4f10e7ea7b2231f453bb18b6e710ac333eaf121b, which introduced the test. --- src/test/subscription/t/002_types.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/subscription/t/002_types.pl b/src/test/subscription/t/002_types.pl index 4ca871bf350..ec55a5f884a 100644 --- a/src/test/subscription/t/002_types.pl +++ b/src/test/subscription/t/002_types.pl @@ -561,8 +561,7 @@ e|{e,d} # which needs an active snapshot in order to operate. $node_publisher->safe_psql('postgres', "INSERT INTO tst_dom_constr VALUES (11)"); -$node_subscriber->poll_query_until('postgres', $synced_query) - or die "Timed out while waiting for subscriber to synchronize data"; +$node_publisher->wait_for_catchup($appname); $result = $node_subscriber->safe_psql('postgres', "SELECT sum(a) FROM tst_dom_constr");