-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not exit when only unref'd timer is present in test code (#3825)
* do not exit when only unref'd timer is present in test code; closes #3817 Signed-off-by: Christopher Hiller <[email protected]> * git checkout master -- docs/example/tests.html * fix: still bail if self.timeout() === 0 * fix: unref timers implicitly scheduled for MAX_TIMEOUT * Revert "fix: unref timers implicitly scheduled for MAX_TIMEOUT" This reverts commit d4a65aa. * test: call .run() to not leave timer pending --------- Signed-off-by: Christopher Hiller <[email protected]> Co-authored-by: Josh Goldberg <[email protected]>
- Loading branch information
1 parent
24560c1
commit 6d24689
Showing
4 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
it('unrefs a timeout', function(done) { | ||
setTimeout(done, 10).unref(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters