@@ -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 (
@@ -215,11 +215,11 @@ suite("DiagnosticsManager Test Suite", async function () {
215215 await swiftConfig . update ( "diagnosticsStyle" , "default" ) ;
216216
217217 await Promise . all ( [
218- executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
219218 waitForDiagnostics ( {
220219 [ mainUri . fsPath ] : [ expectedWarningDiagnostic , expectedMainErrorDiagnostic ] , // Should have parsed correct severity
221220 [ funcUri . fsPath ] : [ expectedFuncErrorDiagnostic ] , // Check parsed for other file
222221 } ) ,
222+ executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
223223 ] ) ;
224224
225225 await waitForNoRunningTasks ( ) ;
@@ -237,15 +237,15 @@ suite("DiagnosticsManager Test Suite", async function () {
237237 swiftVersion . isLessThanOrEqual ( new Version ( 6 , 0 , 0 ) ) )
238238 ) {
239239 this . skip ( ) ;
240- return ;
241240 }
242241 await swiftConfig . update ( "diagnosticsStyle" , "swift" ) ;
242+
243243 await Promise . all ( [
244- executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
245244 waitForDiagnostics ( {
246245 [ mainUri . fsPath ] : [ expectedWarningDiagnostic , expectedMainErrorDiagnostic ] , // Should have parsed correct severity
247246 [ funcUri . fsPath ] : [ expectedFuncErrorDiagnostic ] , // Check parsed for other file
248247 } ) ,
248+ executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
249249 ] ) ;
250250 await waitForNoRunningTasks ( ) ;
251251 } ) ;
@@ -254,11 +254,11 @@ suite("DiagnosticsManager Test Suite", async function () {
254254 await swiftConfig . update ( "diagnosticsStyle" , "llvm" ) ;
255255
256256 await Promise . all ( [
257- executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
258257 waitForDiagnostics ( {
259258 [ mainUri . fsPath ] : [ expectedWarningDiagnostic , expectedMainErrorDiagnostic ] , // Should have parsed correct severity
260259 [ funcUri . fsPath ] : [ expectedFuncErrorDiagnostic ] , // Check parsed for other file
261260 } ) ,
261+ executeTaskAndWaitForResult ( createBuildAllTask ( folderContext ) ) ,
262262 ] ) ;
263263 await waitForNoRunningTasks ( ) ;
264264
@@ -304,10 +304,10 @@ suite("DiagnosticsManager Test Suite", async function () {
304304 expectedDiagnostic2 . source = "swiftc" ;
305305
306306 await Promise . all ( [
307- executeTaskAndWaitForResult ( createBuildAllTask ( cFolderContext ) ) ,
308307 waitForDiagnostics ( {
309308 [ cUri . fsPath ] : [ expectedDiagnostic1 , expectedDiagnostic2 ] ,
310309 } ) ,
310+ executeTaskAndWaitForResult ( createBuildAllTask ( cFolderContext ) ) ,
311311 ] ) ;
312312 await waitForNoRunningTasks ( ) ;
313313 } ) ;
@@ -339,10 +339,10 @@ suite("DiagnosticsManager Test Suite", async function () {
339339 expectedDiagnostic2 . source = "swiftc" ;
340340
341341 await Promise . all ( [
342- executeTaskAndWaitForResult ( createBuildAllTask ( cppFolderContext ) ) ,
343342 waitForDiagnostics ( {
344343 [ cppUri . fsPath ] : [ expectedDiagnostic1 , expectedDiagnostic2 ] ,
345344 } ) ,
345+ executeTaskAndWaitForResult ( createBuildAllTask ( cppFolderContext ) ) ,
346346 ] ) ;
347347 await waitForNoRunningTasks ( ) ;
348348
0 commit comments