🌐 AI搜索 & 代理 主页
Skip to content

Commit 807b2f2

Browse files
committed
Fix bogus extra arguments to query_safe in test
The test seemed to incorrectly think that query_safe() takes an argument that describes what the query does, similar to e.g. command_ok(). Until commit bd8d9c9 the extra arguments were harmless and were just ignored, but when commit bd8d9c9 introduced a new optional argument to query_safe(), the extra arguments started clashing with that, causing the test to fail. Backpatch to v17, that's the oldest branch where the test exists. The extra arguments didn't cause any trouble on the older branches, but they were clearly bogus anyway.
1 parent 998d100 commit 807b2f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/modules/xid_wraparound/t/004_notify_freeze.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
# Start Session 1 and leave it idle in transaction
2727
my $psql_session1 = $node->background_psql('postgres');
28-
$psql_session1->query_safe('listen s;', "Session 1 listens to 's'");
29-
$psql_session1->query_safe('begin;', "Session 1 starts a transaction");
28+
$psql_session1->query_safe('listen s;');
29+
$psql_session1->query_safe('begin;');
3030

3131
# Send some notifys from other sessions
3232
for my $i (1 .. 10)
@@ -57,7 +57,7 @@
5757
# On Session 1, commit and ensure that the all the notifications are
5858
# received. This depends on correctly freezing the XIDs in the pending
5959
# notification entries.
60-
my $res = $psql_session1->query_safe('commit;', "commit listen s;");
60+
my $res = $psql_session1->query_safe('commit;');
6161
my $notifications_count = 0;
6262
foreach my $i (split('\n', $res))
6363
{

0 commit comments

Comments
 (0)