From 0eb79d77f145cb6794ab31506e7a40bdfbbdef10 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Mon, 11 Mar 2024 14:03:37 +0100
Subject: [PATCH] lib/api/api_test: increase timeout from 1 second to 60
seconds
When run in parellel, 1 second is not enough for tests to work reliably.
---
lib/api/api_test.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/api/api_test.go b/lib/api/api_test.go
index cfdcb42..8badf19 100644
--- a/lib/api/api_test.go
+++ b/lib/api/api_test.go
@@ -444,7 +444,7 @@ func TestAPIServiceRequests(t *testing.T) {
// testHTTPRequest tries the given test case, comparing the result code,
// content type, and result prefix.
func testHTTPRequest(t *testing.T, baseURL string, tc httpTestCase, apikey string) {
- timeout := time.Second
+ timeout := 60 * time.Second
if tc.Timeout > 0 {
timeout = tc.Timeout
}
--
2.44.0