test_runner: replace spurious if with else

There is an `if` statement that likely should have been
an `else` in the original PR.

Refs: https://github.com/nodejs/node/pull/48915
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Colin Ihrig authored and GitHub committed 2023-09-29 11:04:58 +00:00
1 parent 43500fa646
commit c935d4c8fa
1 file changed
+1 -1
+1 -1
View File
@@ -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();