Skip to content

Commit

Permalink
test: remove superfluous check in pummel/test-timers
Browse files Browse the repository at this point in the history
If setTimeout is not a function, this test and most other tests would
fail. There is no need to check it.

PR-URL: #34488
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Pranshu Srivastava <rexagod@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
Trott authored and addaleax committed Sep 22, 2020
1 parent cef1284 commit d8c5bda
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/pummel/test-timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const WINDOW = 200; // Why does this need to be so big?

let interval_count = 0;

assert.strictEqual(setTimeout instanceof Function, true);
const starttime = new Date();
setTimeout(common.mustCall(function() {
const endtime = new Date();
Expand Down

0 comments on commit d8c5bda

Please sign in to comment.