Skip to content

Commit 5794dc5

Browse files
AlinaVarkkiDevtools-frontend LUCI CQ
authored andcommitted
Decrease fetchLocale timeout
Getting locale has the same timeout as mocha so mocha also times out with locale Bug: None No-Presubmit: True No-Tree-Checks: True No-Try: True Change-Id: I1b2e6462ef330a0839da0130d2ef714ef5f6e7b6 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7021831 Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org> Commit-Queue: Alina Varkki <alinavarkki@chromium.org>
1 parent 6fc4fe5 commit 5794dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front_end/core/i18n/i18nImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function fetchAndRegisterLocaleData(
6868
locale: Intl.UnicodeBCP47LocaleIdentifier, location = self.location.toString()): Promise<void> {
6969
const localeDataTextPromise = fetch(getLocaleFetchUrl(locale, location)).then(result => result.json());
7070
const timeoutPromise =
71-
new Promise<never>((_, reject) => window.setTimeout(() => reject(new Error('timed out fetching locale')), 5000));
71+
new Promise<never>((_, reject) => window.setTimeout(() => reject(new Error('timed out fetching locale')), 2500));
7272
const localeData = await Promise.race([timeoutPromise, localeDataTextPromise]);
7373
i18nInstance.registerLocaleData(locale, localeData);
7474
}

0 commit comments

Comments
 (0)