Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 59a1592

Browse files
committed
tests: Make postmaster/002_connection_limits deal verbose logs
When log_error_verbosity=verbose is configured the test would hand (and then fail), because of the sqlstate being added between log level and message. Make regex cope. Reported-by: Andrew Dunstan <andrew@dunslane.net> Discussion: https://postgr.es/m/c7ba6bd0-3701-43d1-9087-017777fe9cd2%40dunslane.net
1 parent 29d6808 commit 59a1592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/postmaster/t/002_connection_limits.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ sub connect_fails_wait
6666
my $log_location = -s $node->logfile;
6767

6868
$node->connect_fails($connstr, $test_name, %params);
69-
$node->wait_for_log(qr/DEBUG: client backend.*exited with exit code 1/,
69+
$node->wait_for_log(qr/DEBUG: (00000: )?client backend.*exited with exit code 1/,
7070
$log_location);
7171
ok(1, "$test_name: client backend process exited");
7272
}

0 commit comments

Comments
 (0)