mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Make crash-reporter spec more reliable
This commit is contained in:
@@ -19,8 +19,9 @@ describe 'crash-reporter module', ->
|
||||
return if process.platform is 'win32' and process.arch is 'x64'
|
||||
|
||||
it 'should send minidump when renderer crashes', (done) ->
|
||||
@timeout 60000
|
||||
@timeout 120000
|
||||
server = http.createServer (req, res) ->
|
||||
server.close()
|
||||
form = new formidable.IncomingForm()
|
||||
process.throwDeprecation = false
|
||||
form.parse req, (error, fields, files) ->
|
||||
@@ -37,7 +38,6 @@ describe 'crash-reporter module', ->
|
||||
assert files['upload_file_minidump']['name']?
|
||||
|
||||
res.end('abc-123-def')
|
||||
server.close()
|
||||
done()
|
||||
# Server port is generated randomly for the first run, it will be reused
|
||||
# when page is refreshed.
|
||||
|
||||
Reference in New Issue
Block a user