fix(test): increase test timeout for update checks and tune fetch timeout
This commit is contained in:
1 parent
70367cc058
commit
3098c8f5bc
3 files changed
+6
-6
No files matched your search
@@ -326,7 +326,7 @@ async function fetchGitHubReleases(repo: string, limit = 20): Promise<GitHubRele
|
||||
|
||||
for (const url of urls) {
|
||||
try {
|
||||
const res = await fetch(url, { headers, signal: AbortSignal.timeout(5000) });
|
||||
const res = await fetch(url, { headers, signal: AbortSignal.timeout(3000) });
|
||||
if (!res.ok) continue;
|
||||
const json = (await res.json()) as Array<{
|
||||
tag_name?: string;
|
||||
@@ -397,7 +397,7 @@ async function fetchGitHubRelease(repo: string, targetVersion?: string): Promise
|
||||
|
||||
for (const url of urls) {
|
||||
try {
|
||||
const res = await fetch(url, { headers, signal: AbortSignal.timeout(5000) });
|
||||
const res = await fetch(url, { headers, signal: AbortSignal.timeout(3000) });
|
||||
if (!res.ok) continue;
|
||||
const json = (await res.json()) as {
|
||||
tag_name?: string;
|
||||
|
||||
Reference in new issue
Block a user