git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a5fe473)
Consistently capitalize names of recovery tests
Tue, 2 Aug 2016 14:47:03 +0000 (10:47 -0400)
Tue, 2 Aug 2016 14:47:03 +0000 (10:47 -0400)

diff --git a/src/test/recovery/t/001_stream_rep.pl b/src/test/recovery/t/001_stream_rep.pl
index 7b42f215344c7f9d20934cfd447ce5577dd2cbff..82bad85717e3d0723473ab9071bfce410e166362 100644 (file)
--- 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 20b878e524a5462d41eab688806106368d97b00a..b69bbadb3c8a4d2358b0fed30a193ed761a84228 100644 (file)
--- 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 cfd89292423948676f2fba6d0b2188d9d3616f40..640295bfa8bc885ad12f0e7995ab22d7a69d9f61 100644 (file)
--- 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 baf4477e3c609e7ede48f7813f5c52ebf4625607..0c872263eab9a40f2b3b8704333abf65d836f085 100644 (file)
--- 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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /