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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy