We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e426910 commit 8b0f373Copy full SHA for 8b0f373
test/unit/adapters/http.js
@@ -370,13 +370,20 @@ describe('supports http with nodejs', function () {
370
});
371
372
it('should support sockets', function (done) {
373
+ // Different sockets for win32 vs darwin/linux
374
+ var socketName = './test.sock';
375
+
376
+ if (process.platform === 'win32') {
377
+ socketName = '\\\\.\\pipe\\libuv-test';
378
+ }
379
380
server = net.createServer(function (socket) {
381
socket.on('data', function () {
382
socket.end('HTTP/1.1 200 OK\r\n\r\n');
383
- }).listen('./test.sock', function () {
384
+ }).listen(socketName, function () {
385
axios({
- socketPath: './test.sock',
386
+ socketPath: socketName,
387
url: '/'
388
})
389
.then(function (resp) {
0 commit comments