mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
107b06792a
- Rename test-fs-truncate-GH-6233 to test-fs-truncate-clear-file-zero - Rename test-process-exit-GH-12322 to test-process-exit-handler PR-URL: https://github.com/nodejs/node/pull/19668 Refs: https://github.com/nodejs/node/issues/19105 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
12 lines
320 B
JavaScript
12 lines
320 B
JavaScript
'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;);
|
|
});
|