Skip to content

Commit bd04aa4

Browse files
committed
Fix node numbering in diag messages from tap-test 001.
1 parent acf65fd commit bd04aa4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

contrib/mmts/t/001_basic_recovery.pl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@
4343

4444
sleep(5); # Wait until failure of node will be detected
4545

46-
diag("inserting 2 on node 1");
46+
diag("inserting 2 on node 0");
4747
my $ret = $cluster->psql(0, 'postgres', "insert into t values(2, 20);"); # this transaciton may fail
4848
diag "tx1 status = $ret";
4949

50-
diag("inserting 3 on node 2");
50+
diag("inserting 3 on node 1");
5151
my $ret = $cluster->psql(1, 'postgres', "insert into t values(3, 30);"); # this transaciton may fail
5252
diag "tx2 status = $ret";
5353

54-
diag("inserting 4 on node 1 (can fail)");
54+
diag("inserting 4 on node 0 (can fail)");
5555
my $ret = $cluster->psql(0, 'postgres', "insert into t values(4, 40);");
5656
diag "tx1 status = $ret";
5757

58-
diag("inserting 5 on node 2 (can fail)");
58+
diag("inserting 5 on node 1 (can fail)");
5959
my $ret = $cluster->psql(1, 'postgres', "insert into t values(5, 50);");
6060
diag "tx2 status = $ret";
6161

@@ -73,9 +73,9 @@
7373

7474
sleep(5); # Wait until node is started
7575

76-
diag("inserting 6 on node 1 (can fail)");
76+
diag("inserting 6 on node 0 (can fail)");
7777
$cluster->psql(0, 'postgres', "insert into t values(6, 60);");
78-
diag("inserting 7 on node 2 (can fail)");
78+
diag("inserting 7 on node 1 (can fail)");
7979
$cluster->psql(1, 'postgres', "insert into t values(7, 70);");
8080

8181
diag("polling node 2");
@@ -92,12 +92,12 @@
9292
$cluster->psql(2, 'postgres', "select * from mtm.get_cluster_state();", stdout => \$psql_out);
9393
diag("Node 3 status: $psql_out");
9494

95-
diag("inserting 8 on node 1");
95+
diag("inserting 8 on node 0");
9696
$cluster->psql(0, 'postgres', "insert into t values(8, 80);");
97-
diag("inserting 9 on node 2");
97+
diag("inserting 9 on node 1");
9898
$cluster->psql(1, 'postgres', "insert into t values(9, 90);");
9999

100-
diag("selecting from node 3");
100+
diag("selecting from node 2");
101101
$cluster->psql(2, 'postgres', "select v from t where k=8;", stdout => \$psql_out);
102102
diag("selected");
103103

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy