diff options
author | Andres Freund <andres@anarazel.de> | 2025-03-10 19:11:32 -0400 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2025-03-10 19:32:26 -0400 |
commit | 59a1592e39fed164d4d6437d62a55aef36e866a5 (patch) | |
tree | 2af52a1790a2e33742011e3e878416e385f0a947 /src | |
parent | 29d6808edebb3eced76e2acbbcf453dd693ac6bf (diff) | |
download | postgresql-59a1592e39fed164d4d6437d62a55aef36e866a5.tar.gz postgresql-59a1592e39fed164d4d6437d62a55aef36e866a5.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/test/postmaster/t/002_connection_limits.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/postmaster/t/002_connection_limits.pl b/src/test/postmaster/t/002_connection_limits.pl index fd670f3a8f5..fb89a76c005 100644 --- a/src/test/postmaster/t/002_connection_limits.pl +++ b/src/test/postmaster/t/002_connection_limits.pl @@ -66,7 +66,7 @@ sub connect_fails_wait my $log_location = -s $node->logfile; $node->connect_fails($connstr, $test_name, %params); - $node->wait_for_log(qr/DEBUG: client backend.*exited with exit code 1/, + $node->wait_for_log(qr/DEBUG: (00000: )?client backend.*exited with exit code 1/, $log_location); ok(1, "$test_name: client backend process exited"); } |