res.end('abc-123-def')
server.close()
done()
- server.listen 0, '127.0.0.1', ->
+ # Server port is generated randomly for the first run, it will be reused
+ # when page is refreshed.
+ port = remote.process.port
+ server.listen port, '127.0.0.1', ->
{port} = server.address()
+ remote.process.port = port
url = url.format
protocol: 'file'
pathname: path.join fixtures, 'api', 'crash.html'
var Menu = require('menu');
var window = null;
+process.port = 0; // will be used by crash-reporter spec.
app.commandLine.appendSwitch('js-flags', '--expose_gc');
app.commandLine.appendSwitch('ignore-certificate-errors');