Skip to content

Commit 0db343d

Browse files
committed
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.
1 parent f61e1dd commit 0db343d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/recovery/t/001_stream_rep.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ sub test_target_session_attrs
263263
'READ_REPLICATION_SLOT non_existent_slot;',
264264
extra_params => [ '-d', $connstr_rep ]);
265265
ok($ret == 0, "READ_REPLICATION_SLOT exit code 0 on success");
266-
like($stdout, qr/^||$/,
266+
like($stdout, qr/^\|\|$/,
267267
"READ_REPLICATION_SLOT returns NULL values if slot does not exist");
268268

269269
$node_primary->psql(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy