@@ -164,7 +164,7 @@ suite("DiagnosticsManager Test Suite", async function () {
164164 } ) ;
165165
166166 suite ( "Parse diagnostics" , async function ( ) {
167- this . timeout ( 60000 ) ;
167+ this . timeout ( 60000 * 2 ) ;
168168
169169 suite ( "Parse from task output" , async ( ) => {
170170 const expectedWarningDiagnostic = new vscode . Diagnostic (
@@ -232,7 +232,6 @@ suite("DiagnosticsManager Test Suite", async function () {
232232 await swiftConfig . update ( "diagnosticsStyle" , "default" ) ;
233233
234234 await Promise . all ( [
235- executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
236235 waitForDiagnostics ( {
237236 [ mainUri . fsPath ] : [
238237 expectedWarningDiagnostic ,
@@ -245,6 +244,7 @@ suite("DiagnosticsManager Test Suite", async function () {
245244 ] , // Should have parsed correct severity
246245 [ funcUri . fsPath ] : [ expectedFuncErrorDiagnostic ] , // Check parsed for other file
247246 } ) ,
247+ executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
248248 ] ) ;
249249
250250 await waitForNoRunningTasks ( ) ;
@@ -264,12 +264,13 @@ suite("DiagnosticsManager Test Suite", async function () {
264264 this . skip ( ) ;
265265 }
266266 await swiftConfig . update ( "diagnosticsStyle" , "swift" ) ;
267+
267268 await Promise . all ( [
268- executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
269269 waitForDiagnostics ( {
270270 [ mainUri . fsPath ] : [ expectedWarningDiagnostic , expectedMainErrorDiagnostic ] , // Should have parsed correct severity
271271 [ funcUri . fsPath ] : [ expectedFuncErrorDiagnostic ] , // Check parsed for other file
272272 } ) ,
273+ executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
273274 ] ) ;
274275 await waitForNoRunningTasks ( ) ;
275276 } ) ;
@@ -278,11 +279,11 @@ suite("DiagnosticsManager Test Suite", async function () {
278279 await swiftConfig . update ( "diagnosticsStyle" , "llvm" ) ;
279280
280281 await Promise . all ( [
281- executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
282282 waitForDiagnostics ( {
283283 [ mainUri . fsPath ] : [ expectedWarningDiagnostic , expectedMainErrorDiagnostic ] , // Should have parsed correct severity
284284 [ funcUri . fsPath ] : [ expectedFuncErrorDiagnostic ] , // Check parsed for other file
285285 } ) ,
286+ executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
286287 ] ) ;
287288 await waitForNoRunningTasks ( ) ;
288289
@@ -328,10 +329,10 @@ suite("DiagnosticsManager Test Suite", async function () {
328329 expectedDiagnostic2 . source = "swiftc" ;
329330
330331 await Promise . all ( [
331- executeTaskAndWaitForResult ( createBuildAllTask ( cFolderContext ) ) ,
332332 waitForDiagnostics ( {
333333 [ cUri . fsPath ] : [ expectedDiagnostic1 , expectedDiagnostic2 ] ,
334334 } ) ,
335+ executeTaskAndWaitForResult ( createBuildAllTask ( cFolderContext ) ) ,
335336 ] ) ;
336337 await waitForNoRunningTasks ( ) ;
337338 } ) ;
@@ -363,10 +364,10 @@ suite("DiagnosticsManager Test Suite", async function () {
363364 expectedDiagnostic2 . source = "swiftc" ;
364365
365366 await Promise . all ( [
366- executeTaskAndWaitForResult ( createBuildAllTask ( cppFolderContext ) ) ,
367367 waitForDiagnostics ( {
368368 [ cppUri . fsPath ] : [ expectedDiagnostic1 , expectedDiagnostic2 ] ,
369369 } ) ,
370+ executeTaskAndWaitForResult ( createBuildAllTask ( cppFolderContext ) ) ,
370371 ] ) ;
371372 await waitForNoRunningTasks ( ) ;
372373
0 commit comments