aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-10-26 11:16:06 +0900
committerMichael Paquier <michael@paquier.xyz>2021-10-26 11:16:06 +0900
commit0db343dc13bc8657976c39ddbf7e0c7db8b2efff (patch)
tree25b1caff0987c917b2efa39a61c747bbd6fbd61d
parentf61e1dd2cee6b1a1da75c2bb0ca3bc72f18748c1 (diff)
downloadpostgresql-0db343dc13bc8657976c39ddbf7e0c7db8b2efff.tar.gz
postgresql-0db343dc13bc8657976c39ddbf7e0c7db8b2efff.zip
Fix overly-lax regex pattern in TAP test of READ_REPLICATION_SLOT
The case checking for a NULL output when a slot does not exist was too lax, as it was passing for any output generated by the query. This fixes the matching pattern to be what it should be, matching only on "||". Oversight in b4ada4e.
-rw-r--r--src/test/recovery/t/001_stream_rep.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/recovery/t/001_stream_rep.pl b/src/test/recovery/t/001_stream_rep.pl
index b3dc68d54bc..c70c08e27bf 100644
--- a/src/test/recovery/t/001_stream_rep.pl
+++ b/src/test/recovery/t/001_stream_rep.pl
@@ -263,7 +263,7 @@ my $slotname = 'test_read_replication_slot_physical';
'READ_REPLICATION_SLOT non_existent_slot;',
extra_params => [ '-d', $connstr_rep ]);
ok($ret == 0, "READ_REPLICATION_SLOT exit code 0 on success");
-like($stdout, qr/^||$/,
+like($stdout, qr/^\|\|$/,
"READ_REPLICATION_SLOT returns NULL values if slot does not exist");
$node_primary->psql(