@@ -4,6 +4,7 @@ import { afterAll, beforeAll, describe, expect } from 'vitest';
44import { test } from '../../../../helpers' ;
55import { Project , User , niceBackendFetch } from '../../../backend-helpers' ;
66import {
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
2627async 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
5253async 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