From aa60a7d20636e29d8a9bcc3005bead546179d165 Mon Sep 17 00:00:00 2001 From: Rostislav Rumenov Date: Tue, 8 Oct 2024 11:13:29 +0000 Subject: [PATCH] . --- packages/agent/src/agent/http/index.ts | 4 ++-- packages/agent/src/agent/http/transforms.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/agent/src/agent/http/index.ts b/packages/agent/src/agent/http/index.ts index 067cbe9ec..f75317e63 100644 --- a/packages/agent/src/agent/http/index.ts +++ b/packages/agent/src/agent/http/index.ts @@ -53,8 +53,8 @@ export enum RequestStatusResponseStatus { Done = 'done', } -// Default delta for ingress expiry is 5 minutes. -const DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS = 5 * 60 * 1000; +// Default delta for ingress expiry is 3 minutes. +const DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS = 3 * 60 * 1000; // Root public key for the IC, encoded as hex export const IC_ROOT_KEY = diff --git a/packages/agent/src/agent/http/transforms.test.ts b/packages/agent/src/agent/http/transforms.test.ts index 7521309c5..207998e4f 100644 --- a/packages/agent/src/agent/http/transforms.test.ts +++ b/packages/agent/src/agent/http/transforms.test.ts @@ -5,7 +5,7 @@ test('it should round down to the nearest minute', () => { // 2021-04-26T17:47:11.314Z - high precision jest.setSystemTime(new Date(1619459231314)); - const expiry = new Expiry(5 * 60 * 1000); + const expiry = new Expiry(3 * 60 * 1000); expect(expiry['_value']).toEqual(BigInt(1619459460000000000)); const expiry_as_date_string = new Date(