Skip to content

Commit 5136ecc

Browse files
committed
chore: more timeout for tests
1 parent 781707a commit 5136ecc

10 files changed

+10
-10
lines changed

tests/integration/cacheSupport.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { CacheAwareResponse } from "../../src/types/cache";
88

99
describe.sequential(
1010
"Cache Support E2E Tests",
11-
{ timeout: 60000 },
11+
{ timeout: 360000 },
1212
() => {
1313
// Spin up/tear down the local TN+Postgres containers once for this suite.
1414
setupTrufNetwork();

tests/integration/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ethers } from "ethers";
33
import { NodeTNClient } from "../../src/client/nodeClient";
44
import { setupTrufNetwork } from "./utils";
55

6-
describe.sequential("Client", { timeout: 90000 }, () => {
6+
describe.sequential("Client", { timeout: 360000 }, () => {
77
// Spin up/tear down the local TN+Postgres containers once for this suite.
88
setupTrufNetwork();
99

tests/integration/composedStream.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {InsertRecordInput} from "../../src";
66

77
describe.sequential(
88
"ComposedStream Integration Tests",
9-
{ timeout: 90000 },
9+
{ timeout: 360000 },
1010
() => {
1111
// Spin up/tear down the local TN+Postgres containers once for this suite.
1212
setupTrufNetwork();

tests/integration/databaseSize.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, expect } from "vitest";
22
import { setupTrufNetwork, testWithDefaultWallet } from "./utils";
33
import { StreamId } from "../../src/util/StreamId";
44

5-
describe.sequential("Get Database Size", { timeout: 90000 }, () => {
5+
describe.sequential("Get Database Size", { timeout: 360000 }, () => {
66
// Spin up/tear down the local TN+Postgres containers once for this suite.
77
setupTrufNetwork();
88

tests/integration/deprecatedApi.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { InsertRecordInput, StreamRecord } from "../../src";
1414
*/
1515
describe.sequential(
1616
"Deprecated API Backward Compatibility Tests",
17-
{ timeout: 60000 },
17+
{ timeout: 360000 },
1818
() => {
1919
// Spin up/tear down the local TN+Postgres containers once for this suite.
2020
setupTrufNetwork();

tests/integration/getListStreams.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { StreamId } from "../../src/util/StreamId";
33
import { StreamType } from "../../src/contracts-api/contractValues";
44
import { setupTrufNetwork, testWithDefaultWallet } from "./utils";
55

6-
describe.sequential("Get List Streams", { timeout: 90000 }, () => {
6+
describe.sequential("Get List Streams", { timeout: 360000 }, () => {
77
// Spin up/tear down the local TN+Postgres containers once for this suite.
88
setupTrufNetwork();
99

tests/integration/permissions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const PERMISSION_ROLES = {
1414
// Create permission-specific test context
1515
const tnTest = createTestContexts(PERMISSION_ROLES);
1616

17-
describe.sequential("Permissions", { timeout: 90000 }, () => {
17+
describe.sequential("Permissions", { timeout: 360000 }, () => {
1818
// Spin up/tear down the local TN+Postgres containers once for this suite.
1919
setupTrufNetwork();
2020

tests/integration/primitiveStream.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {InsertRecordInput} from "../../src";
55

66
describe.sequential(
77
"PrimitiveStream Integration Tests",
8-
{ timeout: 30000 },
8+
{ timeout: 360000 },
99
() => {
1010
// Spin up/tear down the local TN+Postgres containers once for this suite.
1111
setupTrufNetwork();

tests/integration/roleManagement.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const ROLE_TEST_WALLETS = {
2020

2121
const roleTest = createTestContexts(ROLE_TEST_WALLETS, { autoGrantNetworkWriter: false });
2222

23-
describe.sequential("Role Management", { timeout: 120000 }, () => {
23+
describe.sequential("Role Management", { timeout: 360000 }, () => {
2424
// Spin up/tear down the local TN+Postgres containers once for this suite.
2525
setupTrufNetwork();
2626

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default defineConfig({
1313
singleFork: true,
1414
},
1515
},
16-
hookTimeout: 300000, // 300 seconds for setup hooks (Docker containers in CI)
16+
hookTimeout: 600000, // 600 seconds for setup hooks (Docker containers in CI)
1717
},
1818
ssr: {
1919
noExternal: ['@trufnetwork/kwil-js'],

0 commit comments

Comments
 (0)