test: refresh temp directory when using pipe

common.PIPE resides in the temp directory (except on Windows). Insure
that the temp directory is refreshed in tests that use common.PIPE.

PR-URL: https://github.com/nodejs/node/pull/3231
Fixes: https://github.com/nodejs/node/issues/3227
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
This commit is contained in:
Rich Trott 2015-10-06 21:12:45 -07:00
parent 47befffc53
commit a1040f2065
12 changed files with 19 additions and 4 deletions

View file

@ -18,6 +18,8 @@ var server = http.createServer(function(req, res) {
res.end();
});
common.refreshTmpDir();
server.listen(common.PIPE, function() {
var options = {