Fix logical subscriber wait in test.
authorNoah Misch <noah@leadboat.com>
Sat, 8 Sep 2018 23:20:50 +0000 (16:20 -0700)
committerNoah Misch <noah@leadboat.com>
Sat, 8 Sep 2018 23:20:50 +0000 (16:20 -0700)
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

index 4449470f7657d76a6afb6a5ac45990752b66df70..30a3841bcadd48365b37074783d2b2a43a0c8ef7 100644 (file)
@@ -554,8 +554,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");