mirror of
https://github.com/postgres/postgres.git
synced 2026-06-05 14:54:26 -04:00
Consistently capitalize names of recovery tests
This commit is contained in:
parent
a5fe473ad7
commit
f6ced51f91
4 changed files with 9 additions and 9 deletions
|
|
@ -58,6 +58,6 @@ is($result, qq(1002), 'check streamed content on standby 2');
|
|||
|
||||
# Check that only READ-only queries can run on standbys
|
||||
is($node_standby_1->psql('postgres', 'INSERT INTO tab_int VALUES (1)'),
|
||||
3, 'Read-only queries on standby 1');
|
||||
3, 'read-only queries on standby 1');
|
||||
is($node_standby_2->psql('postgres', 'INSERT INTO tab_int VALUES (1)'),
|
||||
3, 'Read-only queries on standby 2');
|
||||
3, 'read-only queries on standby 2');
|
||||
|
|
|
|||
|
|
@ -98,10 +98,10 @@ test_recovery_standby('immediate target',
|
|||
test_recovery_standby('XID', 'standby_2', $node_master, \@recovery_params,
|
||||
"2000", $lsn2);
|
||||
@recovery_params = ("recovery_target_time = '$recovery_time'");
|
||||
test_recovery_standby('Time', 'standby_3', $node_master, \@recovery_params,
|
||||
test_recovery_standby('time', 'standby_3', $node_master, \@recovery_params,
|
||||
"3000", $lsn3);
|
||||
@recovery_params = ("recovery_target_name = '$recovery_name'");
|
||||
test_recovery_standby('Name', 'standby_4', $node_master, \@recovery_params,
|
||||
test_recovery_standby('name', 'standby_4', $node_master, \@recovery_params,
|
||||
"4000", $lsn4);
|
||||
|
||||
# Multiple targets
|
||||
|
|
@ -111,17 +111,17 @@ test_recovery_standby('Name', 'standby_4', $node_master, \@recovery_params,
|
|||
"recovery_target_name = '$recovery_name'",
|
||||
"recovery_target_xid = '$recovery_txid'",
|
||||
"recovery_target_time = '$recovery_time'");
|
||||
test_recovery_standby('Name + XID + Time',
|
||||
test_recovery_standby('name + XID + time',
|
||||
'standby_5', $node_master, \@recovery_params, "3000", $lsn3);
|
||||
@recovery_params = (
|
||||
"recovery_target_time = '$recovery_time'",
|
||||
"recovery_target_name = '$recovery_name'",
|
||||
"recovery_target_xid = '$recovery_txid'");
|
||||
test_recovery_standby('Time + Name + XID',
|
||||
test_recovery_standby('time + name + XID',
|
||||
'standby_6', $node_master, \@recovery_params, "2000", $lsn2);
|
||||
@recovery_params = (
|
||||
"recovery_target_xid = '$recovery_txid'",
|
||||
"recovery_target_time = '$recovery_time'",
|
||||
"recovery_target_name = '$recovery_name'");
|
||||
test_recovery_standby('XID + Time + Name',
|
||||
test_recovery_standby('XID + time + name',
|
||||
'standby_7', $node_master, \@recovery_params, "4000", $lsn4);
|
||||
|
|
|
|||
|
|
@ -66,4 +66,4 @@ die "Maximum number of attempts reached ($remaining remain)"
|
|||
# This test is successful if and only if the LSN has been applied with at least
|
||||
# the configured apply delay.
|
||||
ok(time() - $master_insert_time >= $delay,
|
||||
"Check that standby applies WAL only after replication delay");
|
||||
"standby applies WAL only after replication delay");
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ test_sync_state(
|
|||
standby2|2|sync
|
||||
standby3|3|potential
|
||||
standby4|0|async),
|
||||
'2 sync, 1 potential and 1 async');
|
||||
'2 sync, 1 potential, and 1 async');
|
||||
|
||||
# Check that sync_state of each standby is determined correctly
|
||||
# when num_sync exceeds the number of names of potential sync standbys
|
||||
|
|
|
|||
Loading…
Reference in a new issue