summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-connect-pipe.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2015-10-06 21:12:45 -0700
committerRich Trott <rtrott@gmail.com>2015-10-08 20:05:22 -0700
commita1040f206506af0787f62740ec57a4c4a7541038 (patch)
tree1b573993237749bcb4f12321ec1c73df0fd9161d /test/parallel/test-tls-connect-pipe.js
parent47befffc5325a39e80208cafc9acf3827a5aa721 (diff)
downloadandroid-node-v8-a1040f206506af0787f62740ec57a4c4a7541038.tar.gz
android-node-v8-a1040f206506af0787f62740ec57a4c4a7541038.tar.bz2
android-node-v8-a1040f206506af0787f62740ec57a4c4a7541038.zip
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>
Diffstat (limited to 'test/parallel/test-tls-connect-pipe.js')
-rw-r--r--test/parallel/test-tls-connect-pipe.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-tls-connect-pipe.js b/test/parallel/test-tls-connect-pipe.js
index 4d607a8883..ae8062635c 100644
--- a/test/parallel/test-tls-connect-pipe.js
+++ b/test/parallel/test-tls-connect-pipe.js
@@ -18,6 +18,8 @@ var options = {
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
};
+common.refreshTmpDir();
+
var server = tls.Server(options, function(socket) {
++serverConnected;
server.close();