]> khamidou — GitHub mirrors - electron.git/commitdiff
Skip the net.connect test on Windows.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 25 Jul 2014 07:02:17 +0000 (15:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 25 Jul 2014 07:02:17 +0000 (15:02 +0800)
spec/node-spec.coffee

index a2cc8abe3e4187cc6e2f6dbac664f2c1267e08a7..10e4b27443a227b54c51f75169d8f1cbaf751fca 100644 (file)
@@ -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', ->