Skip to content

Commit 34daef2

Browse files
committed
test: make common.PIPE a getter
1 parent f5a3f44 commit 34daef2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/common.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,14 @@ Object.defineProperty(exports, 'hasCrypto', {get: function() {
138138
if (exports.isWindows) {
139139
exports.PIPE = '\\\\.\\pipe\\libuv-test';
140140
} else {
141-
exports.PIPE = exports.tmpDir + '/test.sock';
141+
Object.defineProperty(exports, {
142+
configurable: true,
143+
enumerable: true,
144+
writable: true,
145+
get() {
146+
return exports.tmpDir + '/test.sock';
147+
}
148+
})
142149
}
143150

144151
if (process.env.NODE_COMMON_PIPE) {

0 commit comments

Comments
 (0)