@@ -24,7 +24,7 @@ export function runDevModeTestSuite(config: DevModeConfig): void {
2424 describe ( `Devmode action tests for ${ config . buildTool } Project` , ( ) => {
2525
2626 before ( async function ( ) {
27- this . timeout ( 300000 ) ;
27+ this . timeout ( 480000 ) ;
2828
2929 await VSBrowser . instance . openResources ( config . getProjectPath ( ) ) ;
3030 await VSBrowser . instance . waitForWorkbench ( ) ;
@@ -33,11 +33,18 @@ export function runDevModeTestSuite(config: DevModeConfig): void {
3333 // registerTreeDataProvider is only called after startLangServer
3434 // resolves — without this, waitForDashboardToLoad polls an empty
3535 // tree for minutes on cold mac-previous runners.
36- await utils . waitForLanguageServerInit (
37- 'Language Support for Liberty' ,
38- 'Initialized Liberty Language server' ,
39- 240
40- ) ;
36+ // Non-fatal: if the LS doesn't init in time we proceed anyway and
37+ // let waitForDashboardToLoad handle the remaining wait — this avoids
38+ // skipping the entire suite when the before() hook itself times out.
39+ try {
40+ await utils . waitForLanguageServerInit (
41+ 'Language Support for Liberty' ,
42+ 'Initialized Liberty Language server' ,
43+ 420
44+ ) ;
45+ } catch {
46+ logger . info ( 'Liberty LS did not init within before() budget — proceeding anyway' ) ;
47+ }
4148
4249 dashboard = new DashboardPage ( ) ;
4350 } ) ;
0 commit comments