mirror of
https://github.com/postgres/postgres.git
synced 2026-06-27 17:31:57 -04:00
oauth_validator: Print captured stderr after call-count failure
If the call count test fails, you'll reasonably want to know what the network trace looked like, but that information is currently swallowed. Print it out instead. Backpatch-through: 18
This commit is contained in:
parent
e3b7a43fa9
commit
1fb397f730
1 changed files with 4 additions and 1 deletions
|
|
@ -444,7 +444,10 @@ if (like($stderr, $count_pattern, "call count: count is printed"))
|
|||
# to change across OSes and Curl updates, we're likely in trouble if we see
|
||||
# hundreds or thousands of calls.
|
||||
$stderr =~ $count_pattern;
|
||||
cmp_ok($1, '<', 100, "call count is reasonably small");
|
||||
unless (cmp_ok($1, '<', 100, "call count is reasonably small"))
|
||||
{
|
||||
diag "full stderr:\n$stderr";
|
||||
}
|
||||
}
|
||||
|
||||
# Stress test: make sure our builtin flow operates correctly even if the client
|
||||
|
|
|
|||
Loading…
Reference in a new issue