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

Commit 7c402b4

Browse files
committed
set db name in 005_add_stop_node.pl
1 parent 52d42ad commit 7c402b4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

t/005_add_stop_node.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
{
2020
my $node = $cluster->{nodes}->[$_];
2121

22+
$node->{dbname} = 'postgres';
23+
2224
note($cluster->connstr($_));
2325

2426
$cluster->safe_psql($_, qq{
@@ -56,9 +58,10 @@
5658
my $pgb2= $cluster->pgbench_async(1, ('-N', '-n', -T => '3600', -c => '2') );
5759

5860
my $new_node_off = $cluster->add_node();
61+
$cluster->{nodes}->[$new_node_off]->{dbname} = 'postgres';
5962
my $sock = $cluster->hold_socket($new_node_off);
6063
my $connstr = $cluster->connstr($new_node_off);
61-
my $new_node_id = $cluster->safe_psql(0, "SELECT mtm.add_node('$connstr')");
64+
my $new_node_id = $cluster->safe_psql(0, "SELECT mtm.add_node(\$\$$connstr\$\$)");
6265

6366
is($new_node_id, 1, "sparse id assignment");
6467
is($new_node_off, 3, "sparse id assignment");
@@ -81,7 +84,7 @@
8184

8285
is($cluster->is_data_identic( (0,1,2,3) ), 1, "add basebackuped node");
8386

84-
my $bb_keycount = $cluster->safe_psql(0, q{
87+
my $bb_keycount = $cluster->safe_psql(3, q{
8588
select count(*) from mtm.config where key='basebackup'
8689
});
8790

0 commit comments

Comments
 (0)