-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: rename regression tests with descriptive file names
Rename test-fs-truncate-GH-6233 to test-fs-truncate-clear-file-zero Rename test-process-exit-GH-12322 to test-process-exit-flaky-handler Refs: #19105 Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
- Loading branch information
Showing
3 changed files
with
25 additions
and
13 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 was deleted.
Oops, something went wrong.
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,11 @@ | ||
'use strict'; | ||
require('../common'); | ||
|
||
// This test ensures that no asynchronous operations are performed in the 'exit' | ||
// handler. | ||
// https://github.com/nodejs/node/issues/12322 | ||
|
||
process.on('exit', () => { | ||
setTimeout(process.abort, 0); // Should not run. | ||
for (const start = Date.now(); Date.now() - start < 10;); | ||
}); |