mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
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
.
This commit is contained in:
parent
f61e1dd2ce
commit
0db343dc13
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user