Skip to content

Commit 9964463

Browse files
committed
[Tests] increase timeouts
1 parent 8b0fb98 commit 9964463

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

tests/src/core/getExports.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ describe('ExportMap', function () {
367367

368368
let imports;
369369
before('load imports', function () {
370-
this.timeout(20000); // takes a long time :shrug:
370+
this.timeout(20e3); // takes a long time :shrug:
371371
sinon.spy(tsConfigLoader, 'tsConfigLoader');
372372
imports = ExportMap.get('./typescript.ts', context);
373373
});
@@ -436,13 +436,13 @@ describe('ExportMap', function () {
436436
it('should cache after parsing for an ambiguous module', function () {
437437
const source = './typescript-declare-module.ts';
438438
const parseSpy = sinon.spy(ExportMap, 'parse');
439-
439+
440440
expect(ExportMap.get(source, context)).to.be.null;
441-
441+
442442
ExportMap.get(source, context);
443-
443+
444444
expect(parseSpy.callCount).to.equal(1);
445-
445+
446446
parseSpy.restore();
447447
});
448448
});

tests/src/core/resolve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ describe('resolve', function () {
401401

402402
// special behavior for infinity
403403
describe('infinite cache', function () {
404-
this.timeout(1500);
404+
this.timeout(1.5e3);
405405

406406
before((done) => setTimeout(done, 1100));
407407

@@ -414,7 +414,7 @@ describe('resolve', function () {
414414
});
415415

416416
describe('finite cache', function () {
417-
this.timeout(1200);
417+
this.timeout(1.2e3);
418418
before((done) => setTimeout(done, 1000));
419419
it('gets correct values after cache lifetime', function () {
420420
expect(resolve(original, context)).not.to.exist;

tests/src/rules/no-unused-modules.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,16 @@ ruleTester.run('no-unused-modules', rule, {
243243
});
244244

245245

246-
describe('dynamic imports', () => {
246+
describe('dynamic imports', function () {
247247
if (semver.satisfies(eslintPkg.version, '< 6')) {
248248
beforeEach(function () {
249249
this.skip();
250250
});
251251
return;
252252
}
253253

254+
this.timeout(10e3);
255+
254256
// test for unused exports with `import()`
255257
ruleTester.run('no-unused-modules', rule, {
256258
valid: [

0 commit comments

Comments
 (0)