From 2afd3a85a95db4c4149f669264500a8af65a5b9d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 25 Jul 2014 15:02:17 +0800 Subject: [PATCH] Skip the net.connect test on Windows. --- spec/node-spec.coffee | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spec/node-spec.coffee b/spec/node-spec.coffee index a2cc8abe3e41..10e4b27443a2 100644 --- a/spec/node-spec.coffee +++ b/spec/node-spec.coffee @@ -77,11 +77,9 @@ describe 'node feature', -> describe 'net.connect', -> it 'emit error when connect to a socket path without listeners', (done) -> - socketPath = - if process.platform is 'win32' - '\\\\.\\pipe\\atom-shell-test-sock' - else - path.join os.tmpdir(), 'atom-shell-test.sock' + return done() if process.platform is 'win32' + + socketPath = path.join os.tmpdir(), 'atom-shell-test.sock' script = path.join(fixtures, 'module', 'create_socket.js') child = child_process.fork script, [socketPath] child.on 'exit', ->