Skip to content

Commit

Permalink
Increased electron test timeout duration.
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Jan 29, 2020
1 parent dbe70c9 commit 0747e22
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/altair-electron/__tests__/index.js
Expand Up @@ -6,6 +6,8 @@ const path = require('path');

chai.use(chaiAsPromised);

const TEST_TIMEOUT = 60000;

let electronPath = path.join(__dirname, '../node_modules', '.bin', 'electron');
const appPath = path.join(__dirname, '../');

Expand All @@ -20,7 +22,7 @@ const app = new Application({
ELECTRON_ENABLE_STACK_DUMPING: true,
NODE_ENV: 'test'
},
startTimeout: 20000,
startTimeout: TEST_TIMEOUT,
requireName: 'electronRequire',

// Uncomment this line to debug
Expand All @@ -46,9 +48,9 @@ global.before(function() {
chai.use(chaiAsPromised);
});
describe('Altair electron', function() {
this.timeout(20000);
this.timeout(TEST_TIMEOUT);
beforeEach(async function() {
this.timeout(20000);
this.timeout(TEST_TIMEOUT);
await app.start();

await app.client.addCommand('newAltairWindow', async() => {
Expand Down

0 comments on commit 0747e22

Please sign in to comment.