Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Jun 20, 2022
1 parent 73e1a03 commit 0fa7730
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const {
} = require('internal/util');
const { isPromise } = require('internal/util/types');
const { isUint32 } = require('internal/validators');
const { setTimeout } = require('timers');
const { cpus } = require('os');
const { bigint: hrtime } = process.hrtime;
const kCallbackAndPromisePresent = 'callbackAndPromisePresent';
Expand All @@ -47,7 +48,7 @@ function PromiseTimeout(promise, timeout) {
kTestTimeoutFailure
)), timeout).unref();
return PromiseRace([
promise,
promise,
deferred.promise,
]);
}
Expand Down
6 changes: 3 additions & 3 deletions test/message/test_runner_output.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ test('subtest sync throw fails', async (t) => {

test('timed out test', { timeout: 500 }, async (t) => {
return new Promise((resolve) => {
setTimeout(resolve, 1000)
setTimeout(resolve, 1000);
});
});

test('callback timed out test', { timeout: 500 }, (t, done) => {
setTimeout(done, 1000)
});
setTimeout(done, 1000);
});

0 comments on commit 0fa7730

Please sign in to comment.