From de40af71d88a68bfcab7fd5e06f10fee85ff55d0 Mon Sep 17 00:00:00 2001 From: d3or Date: Sat, 16 Nov 2024 15:03:40 +0700 Subject: [PATCH] feat: increase test timeout from 30s to 120s --- tests/integration/mockErc20Approval.test.ts | 6 +++--- tests/integration/mockErc20Balance.test.ts | 4 ++-- tests/integration/mockPermit2Approval.test.ts | 2 +- tests/unit/approvals/generateMockApprovalData.test.ts | 4 ++-- tests/unit/approvals/getErc20Approval.test.ts | 4 ++-- tests/unit/approvals/getErc20ApprovalStorageSlot.test.ts | 4 ++-- tests/unit/balances/generateMockBalanceData.test.ts | 4 ++-- tests/unit/balances/getErc20Balance.test.ts | 4 ++-- tests/unit/balances/getErc20BalanceStorageSlot.test.ts | 4 ++-- .../unit/permit2/computePermit2AllowanceStorageSlot.test.ts | 2 +- tests/unit/permit2/getPermit2Erc20Allowance.test.ts | 4 ++-- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/integration/mockErc20Approval.test.ts b/tests/integration/mockErc20Approval.test.ts index 4678660..2c851c4 100644 --- a/tests/integration/mockErc20Approval.test.ts +++ b/tests/integration/mockErc20Approval.test.ts @@ -77,7 +77,7 @@ describe("mockErc20Approval", () => { // check the approval expect(approval.eq(mockApprovalAmount)).toBe(true); - }, 30000); + }, 120000); it("[vyper] should mock the approval of an address for an ERC20 token", async () => { const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52"; @@ -143,7 +143,7 @@ describe("mockErc20Approval", () => { // check the approval expect(approval.toString()).toBe(mockApprovalAmount); - }, 30000); + }, 120000); it("should mock the approval of an address for an ERC20 token, using the fallback slot", async () => { const tokenAddress = "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"; @@ -209,7 +209,7 @@ describe("mockErc20Approval", () => { // check the approval expect(approval.eq(mockApprovalAmount)).toBe(true); - }, 30000); + }, 120000); }); diff --git a/tests/integration/mockErc20Balance.test.ts b/tests/integration/mockErc20Balance.test.ts index 4de49ea..394a48e 100644 --- a/tests/integration/mockErc20Balance.test.ts +++ b/tests/integration/mockErc20Balance.test.ts @@ -75,7 +75,7 @@ describe("mockErc20Balance", () => { ); expect(balance.eq(data.balance)).toBe(true); - }, 30000); + }, 120000); it("[vyper] should mock the balance of an address for an ERC20 token", async () => { const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52"; @@ -138,5 +138,5 @@ describe("mockErc20Balance", () => { ); expect(balance.eq(data.balance)).toBe(true); - }, 30000); + }, 120000); }); diff --git a/tests/integration/mockPermit2Approval.test.ts b/tests/integration/mockPermit2Approval.test.ts index 7000a68..5294cc8 100644 --- a/tests/integration/mockPermit2Approval.test.ts +++ b/tests/integration/mockPermit2Approval.test.ts @@ -71,5 +71,5 @@ describe("mockErc20Approval", () => { // check the approval expect(approval.eq(mockApprovalAmount)).toBe(true); - }, 30000); + }, 120000); }); diff --git a/tests/unit/approvals/generateMockApprovalData.test.ts b/tests/unit/approvals/generateMockApprovalData.test.ts index 5905b60..5323ec9 100644 --- a/tests/unit/approvals/generateMockApprovalData.test.ts +++ b/tests/unit/approvals/generateMockApprovalData.test.ts @@ -30,7 +30,7 @@ describe("generateMockApprovalData", () => { expect(data.slot).toBeDefined(); expect(data.approval).toBeDefined(); expect(data.isVyper).toBe(false); - }, 30000); + }, 120000); it("[vyper] should generate mock approval data", async () => { const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52"; @@ -52,5 +52,5 @@ describe("generateMockApprovalData", () => { expect(data.slot).toBeDefined(); expect(data.approval).toBeDefined(); expect(data.isVyper).toBe(true); - }, 30000); + }, 120000); }); diff --git a/tests/unit/approvals/getErc20Approval.test.ts b/tests/unit/approvals/getErc20Approval.test.ts index 3393d0c..2c08423 100644 --- a/tests/unit/approvals/getErc20Approval.test.ts +++ b/tests/unit/approvals/getErc20Approval.test.ts @@ -24,7 +24,7 @@ describe("getErc20Approval", () => { expect(approval.toString()).toBe( "1461501637330902918203684832716283019655931142975" ); - }, 30000); + }, 120000); it("[vyper] should return the approval for the spender", async () => { const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52"; @@ -40,5 +40,5 @@ describe("getErc20Approval", () => { expect(approval.toString()).toBe( "1461501637330902918203684832716283019655932542975" ); - }, 30000); + }, 120000); }); diff --git a/tests/unit/approvals/getErc20ApprovalStorageSlot.test.ts b/tests/unit/approvals/getErc20ApprovalStorageSlot.test.ts index e86bd89..8f58834 100644 --- a/tests/unit/approvals/getErc20ApprovalStorageSlot.test.ts +++ b/tests/unit/approvals/getErc20ApprovalStorageSlot.test.ts @@ -29,7 +29,7 @@ describe("getErc20ApprovalStorageSlot", () => { "0xf2dfc0227cd25ec2dc7c59717d57cc191c316c525cb2f0ea056315d3be9b1d39" ); expect(isVyper).toBe(false); - }, 30000); + }, 120000); it("[vyper] should return the slot for the approval", async () => { const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52"; const ownerAddress = "0x0000c3Caa36E2d9A8CD5269C976eDe05018f0000"; @@ -49,5 +49,5 @@ describe("getErc20ApprovalStorageSlot", () => { "0xfdea71adb068939bcb1c6cec44c1a3b422cf39891d820933d2cc03eb8a72f14c" ); expect(isVyper).toBe(true); - }, 30000); + }, 120000); }); diff --git a/tests/unit/balances/generateMockBalanceData.test.ts b/tests/unit/balances/generateMockBalanceData.test.ts index 19336d0..92dbe1c 100644 --- a/tests/unit/balances/generateMockBalanceData.test.ts +++ b/tests/unit/balances/generateMockBalanceData.test.ts @@ -27,7 +27,7 @@ describe("generateMockBalanceData", () => { expect(data).toBeDefined(); expect(data.slot).toBeDefined(); expect(data.balance).toBeDefined(); - }, 30000); + }, 120000); it("[vyper] should generate mock balance data", async () => { const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52"; @@ -47,5 +47,5 @@ describe("generateMockBalanceData", () => { expect(data.slot).toBeDefined(); expect(data.balance).toBeDefined(); expect(data.isVyper).toBe(true); - }, 30000); + }, 120000); }); diff --git a/tests/unit/balances/getErc20Balance.test.ts b/tests/unit/balances/getErc20Balance.test.ts index df4279c..e0bba8e 100644 --- a/tests/unit/balances/getErc20Balance.test.ts +++ b/tests/unit/balances/getErc20Balance.test.ts @@ -20,7 +20,7 @@ describe("getErc20Balance", () => { ); expect(balance).toBeDefined(); expect(balance.toString()).toBe("8600000"); - }, 30000); + }, 120000); it("[vyper] should return the balance for the owner", async () => { const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52"; @@ -32,5 +32,5 @@ describe("getErc20Balance", () => { ); expect(balance).toBeDefined(); expect(balance.toString()).toBe("45868293345383087538"); - }, 30000); + }, 120000); }); diff --git a/tests/unit/balances/getErc20BalanceStorageSlot.test.ts b/tests/unit/balances/getErc20BalanceStorageSlot.test.ts index 05e9cac..d1c5afb 100644 --- a/tests/unit/balances/getErc20BalanceStorageSlot.test.ts +++ b/tests/unit/balances/getErc20BalanceStorageSlot.test.ts @@ -25,7 +25,7 @@ describe("getErc20BalanceStorageSlot", () => { expect(slot).toBe("0x09"); expect(balance.toString()).toBe("8600000"); expect(isVyper).toBe(false); - }, 30000); + }, 120000); it("[vyper] should return the slot and balance for the holder", async () => { const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52"; @@ -42,5 +42,5 @@ describe("getErc20BalanceStorageSlot", () => { expect(slot).toBe("0x03"); expect(balance.toString()).toBe("45868293345383087538"); expect(isVyper).toBe(true); - }, 30000); + }, 120000); }); diff --git a/tests/unit/permit2/computePermit2AllowanceStorageSlot.test.ts b/tests/unit/permit2/computePermit2AllowanceStorageSlot.test.ts index 346c05c..40849f4 100644 --- a/tests/unit/permit2/computePermit2AllowanceStorageSlot.test.ts +++ b/tests/unit/permit2/computePermit2AllowanceStorageSlot.test.ts @@ -22,6 +22,6 @@ describe("computePermit2AllowanceStorageSlot", () => { expect(valueAtStorageSlot).toBeDefined() expect(valueAtStorageSlot).toBe('0x00000000000001aa7be40acd0000000000000000000000000000000000000001') - }, 30000); + }, 120000); }); diff --git a/tests/unit/permit2/getPermit2Erc20Allowance.test.ts b/tests/unit/permit2/getPermit2Erc20Allowance.test.ts index 8eeb540..8cdad5c 100644 --- a/tests/unit/permit2/getPermit2Erc20Allowance.test.ts +++ b/tests/unit/permit2/getPermit2Erc20Allowance.test.ts @@ -22,7 +22,7 @@ describe("getPermit2ERC20Allowance", () => { expect(allowance).toBeDefined(); expect(allowance.toString()).toBe("1"); - }, 30000); + }, 120000); it("should return 0 allowance for permit2 ERC20 allowance for vitalik", async () => { const tokenAddress = "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"; @@ -39,6 +39,6 @@ describe("getPermit2ERC20Allowance", () => { ); expect(allowance).toBeDefined(); expect(allowance.toString()).toBe("0"); - }, 30000); + }, 120000); });