spec: Don't reuse port in session spec

This commit is contained in:
Cheng Zhao 2015-07-24 15:49:19 +08:00
parent b52c07f650
commit 417e97eef0

View file

@ -20,8 +20,7 @@ describe 'session module', ->
res.end('finished') res.end('finished')
server.close() server.close()
port = remote.process.port server.listen 0, '127.0.0.1', ->
server.listen port, '127.0.0.1', ->
{port} = server.address() {port} = server.address()
w.loadUrl "#{url}:#{port}" w.loadUrl "#{url}:#{port}"
w.webContents.on 'did-finish-load', -> w.webContents.on 'did-finish-load', ->