@@ -49,7 +49,7 @@ function _setupTests(testType) {
4949 case TEST_TYPE_FS_ACCESS : testPath = window . mountTestPath ; break ;
5050 case TEST_TYPE_FILER : testPath = window . virtualTestPath ; break ;
5151 case TEST_TYPE_TAURI_WS :
52- await window . waitForTrue ( ( ) => { return window . isNodeSetup ; } , 1000 ) ;
52+ await window . waitForTrue ( ( ) => { return window . isNodeSetup ; } , 10000 ) ;
5353 fs . forceUseNodeWSEndpoint ( true ) ;
5454 testPath = fs . getTauriVirtualPath ( `${ await window . __TAURI__ . path . appLocalDataDir ( ) } test-phoenix-fs` ) ;
5555 consoleLogToShell ( "using tauri websocket test path: " + testPath ) ;
@@ -69,8 +69,11 @@ function _setupTests(testType) {
6969 console . log ( `From Worker:` , event ) ;
7070 messageFromWorker = event . data ;
7171 } ;
72+ // Wait for worker to be ready before running tests
73+ let workerReady = await waitForWorkerMessage ( `worker.ready` , 5000 ) ;
74+ expect ( workerReady ) . to . be . true ;
7275 if ( testType === TEST_TYPE_TAURI_WS ) {
73- await window . waitForTrue ( ( ) => { return window . isNodeSetup ; } , 1000 ) ;
76+ await window . waitForTrue ( ( ) => { return window . isNodeSetup ; } , 10000 ) ;
7477 worker . postMessage ( { command : `tauriWSInit` , wsEndpoint : window . nodeWSEndpoint } ) ;
7578 let status = await waitForWorkerMessage ( `tauriWSInit.ok` , 1000 ) ;
7679 expect ( status ) . to . be . true ;
0 commit comments