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

Commit e9ffde3

Browse files
committed
stop pg at the end of 005_add_stop_node.pl
1 parent e7c024a commit e9ffde3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

t/005_add_stop_node.pl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use PostgresNode;
44
use Cluster;
55
use TestLib;
6-
use Test::More tests => 7;
6+
use Test::More tests => 8;
77

88
my $cluster = new Cluster(3);
99
$cluster->init();
@@ -69,6 +69,8 @@
6969
stdout => \$stopped_out, stderr => \$stopped_err);
7070
is($cluster->is_data_identic( (0,1,3) ), 1, "soft stop / resume");
7171
print("::$stopped_out ::$stopped_err\n");
72+
73+
# should be disabled
7274
is($stopped_out eq '' && $stopped_err ne '', 1, "soft stop / resume");
7375

7476
$cluster->psql(0, 'postgres', "select mtm.resume_node(3)");
@@ -90,8 +92,6 @@
9092
$cluster->pgbench(3, ('-N', '-n', -T => '1') );
9193
is($cluster->is_data_identic( (0,1,3) ), 1, "hard stop / resume");
9294

93-
TODO: {
94-
todo_skip "Not working correcly yet",1;
9595
$cluster->psql(0, 'postgres', "select mtm.recover_node(3)");
9696

9797
# now we need to perform backup from live node
@@ -109,4 +109,5 @@
109109
$cluster->pgbench(3, ('-N', '-n', -T => '1') );
110110
$cluster->pgbench(4, ('-N', '-n', -T => '1') );
111111
is($cluster->is_data_identic( (0,1,3,4) ), 1, "hard stop / resume");
112-
}
112+
113+
ok($cluster->stop('fast'), "cluster stops");

0 commit comments

Comments
 (0)