@@ -9,11 +9,11 @@ import {
99  assertDiagnosticsEqual 
1010}  from  './utils' 
1111
12- const  MAX_WAIT_TIME_FOR_UPDATE  =  5000  // ms 
13- const  MAX_WAIT_TIME_FOR_INITIAL_DIAGNOSTICS  =  10000  // ms 
12+ const  MAX_WAIT_TIME_FOR_UPDATE  =  10000  // ms 
13+ const  MAX_WAIT_TIME_FOR_INITIAL_DIAGNOSTICS  =  15000  // ms 
1414
1515const  docUri  =  getDocUri ( 'test.ts' ) 
16- const  diagnosticss  =  getExpectedDiagnosticss ( ) 
16+ const  diagnostics  =  getExpectedDiagnostics ( ) 
1717
1818async  function  writeNewRule ( )  { 
1919  let  vscodeuri  =  vscode . Uri . file ( 
@@ -69,7 +69,7 @@ suite('Should update when files change', () => {
6969    try  { 
7070      assertDiagnosticsEqual ( 
7171        vscode . languages . getDiagnostics ( docUri ) , 
72-         diagnosticss [ 0 ] 
72+         diagnostics [ 0 ] 
7373      ) 
7474    }  catch  ( e )  { 
7575      console . warn ( 
@@ -86,7 +86,7 @@ suite('Should update when files change', () => {
8686      } 
8787      assertDiagnosticsEqual ( 
8888        vscode . languages . getDiagnostics ( docUri ) , 
89-         diagnosticss [ 0 ] 
89+         diagnostics [ 0 ] 
9090      ) 
9191    } 
9292  } ) 
@@ -95,15 +95,15 @@ suite('Should update when files change', () => {
9595    await  waitForDiagnosticChange ( MAX_WAIT_TIME_FOR_UPDATE ) 
9696    assertDiagnosticsEqual ( 
9797      vscode . languages . getDiagnostics ( docUri ) , 
98-       diagnosticss [ 1 ] 
98+       diagnostics [ 1 ] 
9999    ) 
100100  } ) 
101101  test ( 'Update on rule deletion' ,  async  ( )  =>  { 
102102    deleteNewRule ( ) 
103103    await  waitForDiagnosticChange ( MAX_WAIT_TIME_FOR_UPDATE ) 
104104    assertDiagnosticsEqual ( 
105105      vscode . languages . getDiagnostics ( docUri ) , 
106-       diagnosticss [ 2 ] 
106+       diagnostics [ 2 ] 
107107    ) 
108108  } ) 
109109  test ( 'Update on ruleDirs change to nonexistent path' ,  async  ( )  =>  { 
@@ -116,7 +116,7 @@ suite('Should update when files change', () => {
116116    await  waitForDiagnosticChange ( MAX_WAIT_TIME_FOR_UPDATE ) 
117117    assertDiagnosticsEqual ( 
118118      vscode . languages . getDiagnostics ( docUri ) , 
119-       diagnosticss [ 0 ] 
119+       diagnostics [ 0 ] 
120120    ) 
121121  } ) 
122122} ) 
@@ -127,7 +127,7 @@ function toRange(sLine: number, sChar: number, eLine: number, eChar: number) {
127127  return  new  vscode . Range ( start ,  end ) 
128128} 
129129
130- function  getExpectedDiagnosticss ( )  { 
130+ function  getExpectedDiagnostics ( )  { 
131131  const  full  =  [ 
132132    { 
133133      message : 'No Math.random' , 
0 commit comments