Skip to content

Commit

Permalink
test: make common.PIPE a getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishrock123 committed Oct 7, 2015
1 parent f5a3f44 commit 34daef2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,14 @@ Object.defineProperty(exports, 'hasCrypto', {get: function() {
if (exports.isWindows) {
exports.PIPE = '\\\\.\\pipe\\libuv-test';
} else {
exports.PIPE = exports.tmpDir + '/test.sock';
Object.defineProperty(exports, {
configurable: true,
enumerable: true,
writable: true,
get() {
return exports.tmpDir + '/test.sock';
}
})
}

if (process.env.NODE_COMMON_PIPE) {
Expand Down

0 comments on commit 34daef2

Please sign in to comment.