From c4e988f4066f75c4b0a78a655dee42141ed40e05 Mon Sep 17 00:00:00 2001 From: Kerry Date: Thu, 28 Apr 2022 16:51:47 +0200 Subject: [PATCH] increase geolocation timeout options to more realistic values (#8439) Signed-off-by: Kerry Archibald --- src/utils/beacon/geolocation.ts | 4 ++-- test/utils/beacon/geolocation-test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/beacon/geolocation.ts b/src/utils/beacon/geolocation.ts index b21fddad63..330651b520 100644 --- a/src/utils/beacon/geolocation.ts +++ b/src/utils/beacon/geolocation.ts @@ -32,8 +32,8 @@ export enum GeolocationError { } const GeolocationOptions = { - timeout: 5000, - maximumAge: 2000, + timeout: 10000, + maximumAge: 60000, }; const isGeolocationPositionError = (error: unknown): error is GeolocationPositionError => diff --git a/test/utils/beacon/geolocation-test.ts b/test/utils/beacon/geolocation-test.ts index 6d70183070..f28c374838 100644 --- a/test/utils/beacon/geolocation-test.ts +++ b/test/utils/beacon/geolocation-test.ts @@ -163,8 +163,8 @@ describe('geolocation utilities', () => { const [, , options] = geolocation.watchPosition.mock.calls[0]; expect(options).toEqual({ - maximumAge: 2000, - timeout: 5000, + maximumAge: 60000, + timeout: 10000, }); });