Skip to content

Commit

Permalink
test_runner: replace spurious if with else
Browse files Browse the repository at this point in the history
There is an `if` statement that likely should have been
an `else` in the original PR.

Refs: nodejs/node#48915
PR-URL: nodejs/node#49943
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
  • Loading branch information
sercher committed Apr 25, 2024
1 parent abb5133 commit f0691a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graal-nodejs/lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function stopTest(timeout, signal) {

if (timeout === kDefaultTimeout) {
disposeFunction = abortListener[SymbolDispose];
} if (timeout !== kDefaultTimeout) {
} else {
timer = setTimeout(() => deferred.resolve(), timeout);
timer.unref();

Expand Down

0 comments on commit f0691a1

Please sign in to comment.