Use 1 or 2 minute timeout for long specs
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 29 Nov 2016 22:31:57 +0000 (14:31 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 29 Nov 2016 22:31:57 +0000 (14:31 -0800)
spec/api-app-spec.js
spec/api-session-spec.js
spec/asar-spec.js
spec/chromium-spec.js

index b3bb716b9491d128df6d92f8cd683cdd2fe479f3..d1ceef1434c43e622ed53067602ed546f5bc9a99 100644 (file)
@@ -127,7 +127,8 @@ describe('app module', function () {
     })
 
     it('relaunches the app', function (done) {
-      this.timeout(100000)
+      this.timeout(120000)
+
       let state = 'none'
       server.once('error', (error) => {
         done(error)
index b9b6dd0a51ce9e1d04617b6939573595f2943b92..1a75fa333a4a013331feaf44c981d6d3844b36a6 100644 (file)
@@ -9,8 +9,6 @@ const {ipcRenderer, remote} = require('electron')
 const {ipcMain, session, BrowserWindow} = remote
 
 describe('session module', function () {
-  this.timeout(10000)
-
   var fixtures = path.resolve(__dirname, 'fixtures')
   var w = null
   var url = 'http://127.0.0.1'
index 9d485edfded182314c1ab48200fc9d82006332b8..9c91b608982826fb22bd5be37b7e8a837fdedfc0 100644 (file)
@@ -888,7 +888,7 @@ describe('asar package', function () {
     })
 
     it('loads video tag in html', function (done) {
-      this.timeout(20000)
+      this.timeout(60000)
 
       after(function () {
         ipcMain.removeAllListeners('asar-video')
index 611ef16f232dbe1e8a590aec14b85e23a5fdbf06..8aeb2450bded2397f3ac0d2d55e786090db21fa8 100644 (file)
@@ -152,8 +152,6 @@ describe('chromium feature', function () {
       return
     }
 
-    this.timeout(20000)
-
     it('returns a BrowserWindowProxy object', function () {
       var b = window.open('about:blank', '', 'show=no')
       assert.equal(b.closed, false)