Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0db343d

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 wastoo lax, as it was passing for any output generated by the query. Thisfixes the matching pattern to be what it should be, matching only on"||".Oversight inb4ada4e.
1 parentf61e1dd commit0db343d

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)

[8]ページ先頭

©2009-2025 Movatter.jp