Browse Source

Increase timeout for some tests

Cheng Zhao 10 years ago
parent
commit
81783b255e
2 changed files with 2 additions and 0 deletions
  1. 1 0
      spec/api-browser-window-spec.coffee
  2. 1 0
      spec/api-ipc-spec.coffee

+ 1 - 0
spec/api-browser-window-spec.coffee

@@ -216,6 +216,7 @@ describe 'browser-window module', ->
 
   describe 'will-navigate event', ->
     it 'emits when user starts a navigation', (done) ->
+      @timeout 10000
       w.webContents.on 'will-navigate', (event, url) ->
         event.preventDefault()
         assert.equal url, 'https://www.github.com/'

+ 1 - 0
spec/api-ipc-spec.coffee

@@ -66,6 +66,7 @@ describe 'ipc module', ->
       assert.equal msg, 'test'
 
     it 'does not crash when reply is not sent and browser is destroyed', (done) ->
+      @timeout 10000
       w = new BrowserWindow(show: false)
       remote.require('ipc').once 'send-sync-message', (event) ->
         event.returnValue = null