File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 16
16
$node_standby -> poll_query_until(' postgres' ,
17
17
" SELECT (pg_last_wal_replay_lsn() - '$until_lsn '::pg_lsn) >= 0" )
18
18
or die " standby never caught up" ;
19
+
20
+ # the function does not work correctly
21
+ $node_master -> safe_psql( ' postgres' , " select pg_sleep(1);" );
19
22
}
20
23
21
24
my ( $ret , $stdout , $stderr );
@@ -55,11 +58,8 @@ ( $$ )
55
58
56
59
replay_wait( $node_master , $node_standby );
57
60
58
- # replay_wait() does not work correctly
59
- my $master_out = $node_master -> safe_psql( ' postgres' , " select pg_sleep(1);" );
60
-
61
61
# Check for pg_control_snapshot() results
62
- $master_out = $node_master -> safe_psql( ' postgres' , " select * from pg_control_snapshot()" );
62
+ my $master_out = $node_master -> safe_psql( ' postgres' , " select * from pg_control_snapshot()" );
63
63
my $standby_out = $node_standby -> safe_psql( ' postgres' , " select * from pg_control_snapshot()" );
64
64
65
65
ok( $master_out eq ' 1|3|0' , ' pg_control_snapshot() on master' );
You can’t perform that action at this time.
0 commit comments