mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: move tmpdir to submodule of common
Move tmpdir functionality to its own module (common/tmpdir). PR-URL: https://github.com/nodejs/node/pull/17856 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
parent
6035beea93
commit
bf6ce47259
154 changed files with 643 additions and 454 deletions
|
@ -34,7 +34,8 @@ const server = http.createServer(function(req, res) {
|
|||
res.end();
|
||||
});
|
||||
|
||||
common.refreshTmpDir();
|
||||
const tmpdir = require('../common/tmpdir');
|
||||
tmpdir.refresh();
|
||||
|
||||
server.listen(common.PIPE, common.mustCall(function() {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue