Forráskód Böngészése

chore(ton): increase test timeout

benduran 2 hete
szülő
commit
0b3f734c79

+ 1 - 0
target_chains/ton/contracts/jest.config.js

@@ -3,4 +3,5 @@ const { defineJestConfig } = require("@pythnetwork/jest-config/define-config");
 module.exports = defineJestConfig({
   maxWorkers: 1, // Prevents serialization issues with BigInt during error reporting
   testPathIgnorePatterns: ["/node_modules/", "/dist/"],
+  testTimeout: 60 * 1000 * 4, // 4 minutes for slow tests
 });

+ 6 - 3
target_chains/ton/contracts/tests/PythTest.spec.ts

@@ -415,9 +415,12 @@ const CUSTOM_PAYLOAD = Buffer.from("1234567890abcdef", "hex");
 describe("PythTest", () => {
   let code: Cell;
 
-  beforeAll(async () => {
-    code = await compile("PythTest");
-  });
+  beforeAll(
+    async () => {
+      code = await compile("PythTest");
+    },
+    60 * 1000 * 2,
+  );
 
   let blockchain: Blockchain;
   let deployer: SandboxContract<TreasuryContract>;