Listen on 0 to get random port
This commit is contained in:
parent
bed0408ed0
commit
2e5de25383
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ describe 'crash-reporter module', ->
|
||||||
res.end()
|
res.end()
|
||||||
server.close()
|
server.close()
|
||||||
done()
|
done()
|
||||||
port = Math.floor(Math.random() * 55535 + 10000)
|
server.listen 0, '127.0.0.1', ->
|
||||||
server.listen port, '127.0.0.1', ->
|
{port} = server.address()
|
||||||
url = url.format
|
url = url.format
|
||||||
protocol: 'file'
|
protocol: 'file'
|
||||||
pathname: path.join fixtures, 'api', 'crash.html'
|
pathname: path.join fixtures, 'api', 'crash.html'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue