From e5a7f5030d667a1de3d6040da6bd9e055c263ae6 Mon Sep 17 00:00:00 2001 From: rongquan1 <85145303+rongquan1@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:08:12 +0800 Subject: [PATCH 1/5] fix: rpc guide link --- src/components/EndorsementChain/EndorsementChainContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EndorsementChain/EndorsementChainContainer.tsx b/src/components/EndorsementChain/EndorsementChainContainer.tsx index e600dda63..e673d5365 100644 --- a/src/components/EndorsementChain/EndorsementChainContainer.tsx +++ b/src/components/EndorsementChain/EndorsementChainContainer.tsx @@ -8,7 +8,7 @@ import { } from "@tradetrust-tt/tradetrust-ui-components"; import { useTimer } from "react-timer-hook"; -const ProviderDocumentationURL = "https://docs.tradetrust.io/docs/advanced/add-polygon-networks-to-metamask-wallet/"; +const ProviderDocumentationURL = "https://docs.tradetrust.io/docs/topics/advanced/additional-network-metamask-guide/"; const timeout = 60; interface EndorsementChainContainer { From 2777564b1f2300a2b7104bcce8ea2001806cd5e2 Mon Sep 17 00:00:00 2001 From: rongquan1 <85145303+rongquan1@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:59:13 +0800 Subject: [PATCH 2/5] fix: increase jest timeout --- .../useEndorsementChain.integration.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/hooks/useEndorsementChain/useEndorsementChain.integration.test.tsx b/src/common/hooks/useEndorsementChain/useEndorsementChain.integration.test.tsx index a9eea5460..eb17113d4 100644 --- a/src/common/hooks/useEndorsementChain/useEndorsementChain.integration.test.tsx +++ b/src/common/hooks/useEndorsementChain/useEndorsementChain.integration.test.tsx @@ -208,8 +208,8 @@ describe("useEndorsementChain|integration", () => { expect(result.current.pending).toBe(false); expect(result.current.error).toBe(""); }, - { timeout: 60_000 } + { timeout: 120_000 } ); }); - }, 60_000); + }, 120_000); }); From 5edcc469a102dbdacf9eb26078a944c91c9dddb1 Mon Sep 17 00:00:00 2001 From: rongquan1 Date: Fri, 13 Dec 2024 16:10:38 +0800 Subject: [PATCH 3/5] fix: increase jest timeout --- src/common/hooks/useEndorsementChain/helpers.test.ts | 2 ++ .../retrieveEndorsementChain.integration.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/hooks/useEndorsementChain/helpers.test.ts b/src/common/hooks/useEndorsementChain/helpers.test.ts index 728fc43c9..cce4cb772 100644 --- a/src/common/hooks/useEndorsementChain/helpers.test.ts +++ b/src/common/hooks/useEndorsementChain/helpers.test.ts @@ -13,6 +13,8 @@ const amoyProvider = new providers.JsonRpcProvider(ChainInfo[ChainId.Amoy].rpcUr const mockUseProviderContext = useProviderContext as jest.Mock; describe("Test all endorsement chain helpers", () => { + jest.setTimeout(120000); + beforeAll(() => { mockUseProviderContext.mockReturnValue({ provider: amoyProvider, providerOrSigner: amoyProvider }); }); diff --git a/src/common/hooks/useEndorsementChain/retrieveEndorsementChain.integration.test.ts b/src/common/hooks/useEndorsementChain/retrieveEndorsementChain.integration.test.ts index 738e7bb80..3d9614de0 100644 --- a/src/common/hooks/useEndorsementChain/retrieveEndorsementChain.integration.test.ts +++ b/src/common/hooks/useEndorsementChain/retrieveEndorsementChain.integration.test.ts @@ -11,7 +11,7 @@ const amoyProvider = new providers.JsonRpcProvider(ChainInfo[ChainId.Amoy].rpcUr const mockUseProviderContext = useProviderContext as jest.Mock; describe("Fetch Endorsement Transfers", () => { - jest.setTimeout(45000); + jest.setTimeout(120000); beforeAll(() => { mockUseProviderContext.mockReturnValue({ provider: amoyProvider, providerOrSigner: amoyProvider }); From 13854dbc06b1e9b57c527e6f9a1a972394fc51b8 Mon Sep 17 00:00:00 2001 From: rongquan1 Date: Mon, 16 Dec 2024 10:14:31 +0800 Subject: [PATCH 4/5] fix: increase jest timeout --- .../useEndorsementChain/fetchEscrowTransfer.integration.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/hooks/useEndorsementChain/fetchEscrowTransfer.integration.test.ts b/src/common/hooks/useEndorsementChain/fetchEscrowTransfer.integration.test.ts index cce96ac30..38067a778 100644 --- a/src/common/hooks/useEndorsementChain/fetchEscrowTransfer.integration.test.ts +++ b/src/common/hooks/useEndorsementChain/fetchEscrowTransfer.integration.test.ts @@ -10,7 +10,7 @@ const amoyProvider = new providers.JsonRpcProvider(ChainInfo[ChainId.Amoy].rpcUr const mockUseProviderContext = useProviderContext as jest.Mock; describe("Fetch Escrow Transfers, V5", () => { - jest.setTimeout(15000); + jest.setTimeout(120000); beforeAll(() => { mockUseProviderContext.mockReturnValue({ provider: amoyProvider, providerOrSigner: amoyProvider }); From 009da3987509d7054d05bb42bbabe5ad8fa725b2 Mon Sep 17 00:00:00 2001 From: rongquan1 Date: Mon, 16 Dec 2024 10:20:41 +0800 Subject: [PATCH 5/5] fix: increase jest timeout --- .../useEndorsementChain/fetchEscrowTransfer.integration.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/hooks/useEndorsementChain/fetchEscrowTransfer.integration.test.ts b/src/common/hooks/useEndorsementChain/fetchEscrowTransfer.integration.test.ts index 38067a778..3459b78e4 100644 --- a/src/common/hooks/useEndorsementChain/fetchEscrowTransfer.integration.test.ts +++ b/src/common/hooks/useEndorsementChain/fetchEscrowTransfer.integration.test.ts @@ -1447,6 +1447,6 @@ describe("Fetch Escrow Transfers, V5", () => { }, ] `); - }, 60_000); + }, 120_000); }); });