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

Commit055891f

Browse files
committed
Make sure to run pg_isready on correct port
The current code can have pg_isready unexpectedly succeed if there is aserver running on the default port. To avoid this we delay running thetest until after a node has been created but before it starts, and thenuse that node's port, so we are fairly sure there is nothing running onthe port.Backpatch to all live branches.
1 parenta8458f5 commit055891f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/bin/scripts/t/080_pg_isready.pl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
program_version_ok('pg_isready');
1313
program_options_handling_ok('pg_isready');
1414

15-
command_fails(['pg_isready'],'fails with no server running');
16-
1715
my$node = PostgreSQL::Test::Cluster->new('main');
1816
$node->init;
17+
18+
$node->command_fails(['pg_isready'],'fails with no server running');
19+
1920
$node->start;
2021

2122
$node->command_ok(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp