Skip to content

Commit 63d8828

Browse files
committed
attempt test fix
1 parent b4b23d7 commit 63d8828

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

apps/e2e/tests/backend/endpoints/api/v1/external-db-sync-basics.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { afterAll, beforeAll, describe, expect } from 'vitest';
44
import { test } from '../../../../helpers';
55
import { Project, User, niceBackendFetch } from '../../../backend-helpers';
66
import {
7+
HIGH_VOLUME_TIMEOUT,
78
TEST_TIMEOUT,
89
TestDbManager,
910
createProjectWithExternalDb as createProjectWithExternalDbRaw,
@@ -24,7 +25,7 @@ async function runQueryForCurrentProject(body: { query: string, params?: Record<
2425
}
2526

2627
async function waitForClickhouseUser(email: string, expectedDisplayName: string) {
27-
const timeoutMs = 180_000;
28+
const timeoutMs = 600_000;
2829
const intervalMs = 2_000;
2930
const start = performance.now();
3031

@@ -50,7 +51,7 @@ async function waitForClickhouseUser(email: string, expectedDisplayName: string)
5051
}
5152

5253
async function waitForClickhouseUserDeletion(email: string) {
53-
const timeoutMs = 180_000;
54+
const timeoutMs = 600_000;
5455
const intervalMs = 2_000;
5556
const start = performance.now();
5657

@@ -121,7 +122,7 @@ describe.sequential('External DB Sync - Basic Tests', () => {
121122
display_name: "After CH Update",
122123
primary_email: "clickhouse-update@example.com",
123124
});
124-
}, TEST_TIMEOUT);
125+
}, HIGH_VOLUME_TIMEOUT);
125126

126127
test("Deleted user is removed from ClickHouse view", async ({ expect }) => {
127128
await Project.createAndSwitch({ config: { magic_link_enabled: true } });
@@ -141,7 +142,7 @@ describe.sequential('External DB Sync - Basic Tests', () => {
141142
});
142143

143144
await waitForClickhouseUserDeletion("clickhouse-delete@example.com");
144-
}, TEST_TIMEOUT);
145+
}, HIGH_VOLUME_TIMEOUT);
145146

146147
test("Syncs users to ClickHouse by default", async ({ expect }) => {
147148
await Project.createAndSwitch({ config: { magic_link_enabled: true } });

0 commit comments

Comments
 (0)