@@ -209,11 +209,7 @@ describe("DocumentLinter", () => {
209
209
) ;
210
210
// TODO(strager): Figure out why qljs_vscode_create_document failures
211
211
// cause this test to fail.
212
- // TODO(strager): Fix problems when qljs_vscode_destroy_document fails.
213
- if (
214
- functionName !== "qljs_vscode_create_document" &&
215
- functionName != "qljs_vscode_destroy_document"
216
- ) {
212
+ if ( functionName !== "qljs_vscode_create_document" ) {
217
213
let shouldCrash = rng . nextCoinFlip ( ) ;
218
214
coinFlips . push ( shouldCrash ) ;
219
215
if ( shouldCrash ) {
@@ -290,7 +286,7 @@ describe("DocumentLinter", () => {
290
286
}
291
287
}
292
288
}
293
- } ) ;
289
+ } , /*timeout=*/ 60_000 ) ;
294
290
295
291
it ( "concurrent edits are applied in order of calls, with exhaustive fault injection" , async ( ) => {
296
292
let coinFlips ;
@@ -301,14 +297,11 @@ describe("DocumentLinter", () => {
301
297
! crashedProcesses . has ( process ) ,
302
298
"Should not use previously-crashed process"
303
299
) ;
304
- // TODO(strager): Fix problems when qljs_vscode_destroy_document fails.
305
- if ( functionName != "qljs_vscode_destroy_document" ) {
306
- let shouldCrash = rng . nextCoinFlip ( ) ;
307
- coinFlips . push ( shouldCrash ) ;
308
- if ( shouldCrash ) {
309
- crashedProcesses . add ( process ) ;
310
- throw new qljs . ProcessCrashed ( "(injected fault)" ) ;
311
- }
300
+ let shouldCrash = rng . nextCoinFlip ( ) ;
301
+ coinFlips . push ( shouldCrash ) ;
302
+ if ( shouldCrash ) {
303
+ crashedProcesses . add ( process ) ;
304
+ throw new qljs . ProcessCrashed ( "(injected fault)" ) ;
312
305
}
313
306
}
314
307
@@ -379,7 +372,7 @@ describe("DocumentLinter", () => {
379
372
380
373
crashedProcesses . clear ( ) ; // Avoid out-of-memory errors.
381
374
}
382
- } ) ;
375
+ } , /*timeout=*/ 60_000 ) ;
383
376
} ) ;
384
377
385
378
describe ( "ExhaustiveRNG" , ( ) => {
0 commit comments