Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2bdba00

Browse files
committed
await neighbors after node crash in 001_basic_recovery.pl
1 parent 624f688 commit 2bdba00

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

contrib/mmts/t/001_basic_recovery.pl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,8 @@
3535
###############################################################################
3636

3737
note("stopping node 2");
38-
if ($cluster->stopid(2, 'fast')) {
39-
pass("node 2 stops in fast mode");
40-
} else {
41-
my $name = $cluster->{nodes}->[2]->name;
42-
$cluster->bail_out_with_logs("failed to stop $name in fast mode");
43-
}
38+
$cluster->{nodes}->[2]->stop;
39+
$cluster->await_nodes( (0,1) );
4440

4541
note("inserting 2 on node 0");
4642
$ret = $cluster->psql(0, 'postgres', "insert into t values(2, 20);"); # this transaciton may fail

0 commit comments

Comments
 (0)