-
Notifications
You must be signed in to change notification settings - Fork 30k
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;); | ||
}); |