Make crash-reporter spec more reliable
This commit is contained in:
parent
3cf34fe40f
commit
311a5456ec
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue