Browse Source

Use 1 or 2 minute timeout for long specs

Kevin Sawicki 8 years ago
parent
commit
f5f790863d
4 changed files with 3 additions and 6 deletions
  1. 2 1
      spec/api-app-spec.js
  2. 0 2
      spec/api-session-spec.js
  3. 1 1
      spec/asar-spec.js
  4. 0 2
      spec/chromium-spec.js

+ 2 - 1
spec/api-app-spec.js

@@ -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)

+ 0 - 2
spec/api-session-spec.js

@@ -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'

+ 1 - 1
spec/asar-spec.js

@@ -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')

+ 0 - 2
spec/chromium-spec.js

@@ -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)