0002-oauth-Remove-unneeded-timeouts-from-t-002_client.patch
application/octet-stream
Filename: 0002-oauth-Remove-unneeded-timeouts-from-t-002_client.patch
Type: application/octet-stream
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch 0002
Subject: oauth: Remove unneeded timeouts from t/002_client
| File | + | − |
|---|---|---|
| src/test/modules/oauth_validator/t/002_client.pl | 3 | 0 |
From 65c03c649084f9a7b54d172dc14f442e68b3aab0 Mon Sep 17 00:00:00 2001
From: Jacob Champion <jacob.champion@enterprisedb.com>
Date: Thu, 3 Apr 2025 10:12:45 -0700
Subject: [PATCH 2/2] oauth: Remove unneeded timeouts from t/002_client
The connect_timeout=1 setting for the --hang-forever test was kept in
place for later tests, causing unexpected timeouts on slower buildfarm
animals. Remove it.
Reported-by: Andres Freund <andres@anarazel.de>
---
src/test/modules/oauth_validator/t/002_client.pl | 3 +++
1 file changed, 3 insertions(+)
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 = (
{
--
2.34.1