Skip to content

Commit

Permalink
Added env variables to set timeout for jsmine and mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
murliwatz committed Mar 31, 2021
1 parent ca1fc02 commit f3f3740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helpers/jasmine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const BotiumBindings = require('../BotiumBindings')

const defaultTimeout = 60000
const defaultTimeout = process.env.BOTIUM_JASMINE_TIMEOUT || 60000

const setupJasmineTestCases = ({ timeout = defaultTimeout, testcaseSelector, bb } = {}) => {
bb = bb || new BotiumBindings()
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const BotiumBindings = require('../BotiumBindings')

const defaultTimeout = 60000
const defaultTimeout = process.env.BOTIUM_MOCHA_TIMEOUT || 60000

const setupMochaTestCases = ({ timeout = defaultTimeout, testcaseSelector, bb } = {}) => {
bb = bb || new BotiumBindings()
Expand Down

0 comments on commit f3f3740

Please sign in to comment.