Skip the net.connect test on Windows.
This commit is contained in:
parent
92a0a4cf6c
commit
2afd3a85a9
1 changed files with 3 additions and 5 deletions
|
@ -77,11 +77,9 @@ describe 'node feature', ->
|
||||||
|
|
||||||
describe 'net.connect', ->
|
describe 'net.connect', ->
|
||||||
it 'emit error when connect to a socket path without listeners', (done) ->
|
it 'emit error when connect to a socket path without listeners', (done) ->
|
||||||
socketPath =
|
return done() if process.platform is 'win32'
|
||||||
if process.platform is 'win32'
|
|
||||||
'\\\\.\\pipe\\atom-shell-test-sock'
|
socketPath = path.join os.tmpdir(), 'atom-shell-test.sock'
|
||||||
else
|
|
||||||
path.join os.tmpdir(), 'atom-shell-test.sock'
|
|
||||||
script = path.join(fixtures, 'module', 'create_socket.js')
|
script = path.join(fixtures, 'module', 'create_socket.js')
|
||||||
child = child_process.fork script, [socketPath]
|
child = child_process.fork script, [socketPath]
|
||||||
child.on 'exit', ->
|
child.on 'exit', ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue