From: Peter Eisentraut Date: Tue, 2 Aug 2016 14:47:03 +0000 (-0400) Subject: Consistently capitalize names of recovery tests X-Git-Tag: REL9_6_BETA4~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6ced51f9188ad5806219471a0b40a91dde923aa;p=postgresql Consistently capitalize names of recovery tests --- diff --git a/src/test/recovery/t/001_stream_rep.pl b/src/test/recovery/t/001_stream_rep.pl index 7b42f21534..82bad85717 100644 --- a/src/test/recovery/t/001_stream_rep.pl +++ b/src/test/recovery/t/001_stream_rep.pl @@ -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'); diff --git a/src/test/recovery/t/003_recovery_targets.pl b/src/test/recovery/t/003_recovery_targets.pl index 20b878e524..b69bbadb3c 100644 --- a/src/test/recovery/t/003_recovery_targets.pl +++ b/src/test/recovery/t/003_recovery_targets.pl @@ -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); diff --git a/src/test/recovery/t/005_replay_delay.pl b/src/test/recovery/t/005_replay_delay.pl index cfd8929242..640295bfa8 100644 --- a/src/test/recovery/t/005_replay_delay.pl +++ b/src/test/recovery/t/005_replay_delay.pl @@ -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"); diff --git a/src/test/recovery/t/007_sync_rep.pl b/src/test/recovery/t/007_sync_rep.pl index baf4477e3c..0c872263ea 100644 --- a/src/test/recovery/t/007_sync_rep.pl +++ b/src/test/recovery/t/007_sync_rep.pl @@ -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