From c2751d14c5ebc5c74f925dc1573b465d21adb455 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 24 Apr 2024 17:18:28 -0700 Subject: [PATCH] noswhere: bump timeout tests were failing for me otherwise. Signed-off-by: William Casarin --- src/translate/noswhere.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/translate/noswhere.js b/src/translate/noswhere.js index becaf75..9c26517 100644 --- a/src/translate/noswhere.js +++ b/src/translate/noswhere.js @@ -12,6 +12,7 @@ module.exports = class NoswhereTranslator { async #loadTranslationLangs() { let resp = await fetch(this.#noswhereURL + "/langs", { method: 'GET', + timeout: 5000, headers: { 'X-Noswhere-Key': this.#noswhereKey, 'Content-Type': 'application/json' @@ -58,4 +59,4 @@ module.exports = class NoswhereTranslator { throw new Error("error translating: no response") } -} \ No newline at end of file +}