summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson2025-04-03 18:41:09 +0000
committerDaniel Gustafsson2025-04-03 18:41:09 +0000
commit46c4c7cbc6d562d5f1b784fea9527c998c190b99 (patch)
tree60e049918ef165bbca6b3cc5bb8bd093c750a1d2
parent8ae0a37932d81082ec7e4b10eb304a83c561408e (diff)
oauth: Remove timeout from t/002_client when not needed
The connect_timeout=1 setting for the --hang-forever test was left in place and used by later tests, causing unexpected timeouts on slower buildfarm animals. Remove it when no longer needed. Per buildfarm member skink, reported by Andres on Discord. Author: Jacob Champion <[email protected]> Reported-by: Andres Freund <[email protected]>
-rw-r--r--src/test/modules/oauth_validator/t/002_client.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/modules/oauth_validator/t/002_client.pl b/src/test/modules/oauth_validator/t/002_client.pl
index ab83258d736..54769f12f57 100644
--- a/src/test/modules/oauth_validator/t/002_client.pl
+++ b/src/test/modules/oauth_validator/t/002_client.pl
@@ -122,6 +122,9 @@ test(
flags => ["--hang-forever"],
expected_stderr => qr/failed: timeout expired/);
+# Remove the timeout for later tests.
+$common_connstr = "$base_connstr oauth_issuer=$issuer oauth_client_id=myID";
+
# Test various misbehaviors of the client hook.
my @cases = (
{