Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)