|
3 | 3 | use PostgresNode;
|
4 | 4 | use Cluster;
|
5 | 5 | use TestLib;
|
6 |
| -use Test::More tests => 7; |
| 6 | +use Test::More tests => 8; |
7 | 7 |
|
8 | 8 | my $cluster = new Cluster(3);
|
9 | 9 | $cluster->init();
|
|
69 | 69 | stdout => \$stopped_out, stderr => \$stopped_err);
|
70 | 70 | is($cluster->is_data_identic( (0,1,3) ), 1, "soft stop / resume");
|
71 | 71 | print("::$stopped_out ::$stopped_err\n");
|
| 72 | + |
| 73 | +# should be disabled |
72 | 74 | is($stopped_out eq '' && $stopped_err ne '', 1, "soft stop / resume");
|
73 | 75 |
|
74 | 76 | $cluster->psql(0, 'postgres', "select mtm.resume_node(3)");
|
|
90 | 92 | $cluster->pgbench(3, ('-N', '-n', -T => '1') );
|
91 | 93 | is($cluster->is_data_identic( (0,1,3) ), 1, "hard stop / resume");
|
92 | 94 |
|
93 |
| -TODO: { |
94 |
| -todo_skip "Not working correcly yet",1; |
95 | 95 | $cluster->psql(0, 'postgres', "select mtm.recover_node(3)");
|
96 | 96 |
|
97 | 97 | # now we need to perform backup from live node
|
|
109 | 109 | $cluster->pgbench(3, ('-N', '-n', -T => '1') );
|
110 | 110 | $cluster->pgbench(4, ('-N', '-n', -T => '1') );
|
111 | 111 | 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