Skip to content

Commit eaf5321

Browse files
author
Amit Kapila
committed
Fix test failure in 021_twophase.pl.
The test is expecting two prepared transactions corresponding to two subscriptions but it waits to catch up for just one subscription. Fix it by allowing to wait for both subscriptions. Reported-by: Michael Paquier, as per buildfarm Author: Ajin Cherian Reviewed-By: Amit Kapila, Vignesh C, Peter Smith Discussion: https://postgr.es/m/CAA4eK1+_0iNQ8Z=KVTjmmAqNX-hyv+1+fnZ-Yx8CVP=uAcekqw@mail.gmail.com
1 parent 0d14019 commit eaf5321

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/subscription/t/021_twophase.pl

+2
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@
316316
INSERT INTO tab_copy VALUES (99);
317317
PREPARE TRANSACTION 'mygid';");
318318

319+
# Wait for both subscribers to catchup
319320
$node_publisher->wait_for_catchup($appname_copy);
321+
$node_publisher->wait_for_catchup($appname);
320322

321323
# Check that the transaction has been prepared on the subscriber, there will be 2
322324
# prepared transactions for the 2 subscriptions.

0 commit comments

Comments
 (0)