diff --git a/benchmark/server.js b/benchmark/server.js index 49282eb3..9e3fccc8 100644 --- a/benchmark/server.js +++ b/benchmark/server.js @@ -18,7 +18,10 @@ const app = new jstp.Application('app', { const server = jstp.net.createServer([app]); server.maxConnections = maxConnections; -const socket = path.resolve(os.tmpdir(), 'jstp_benchmark_ipc'); +const socket = path.join( + process.platform === 'win32' ? '\\\\.\\pipe' : os.tmpdir(), + 'jstp-ipc-test' +); const terminate = () => { server.close();