diff --git a/packages/plugins/mocha-tests/src/lib/index.js b/packages/plugins/mocha-tests/src/lib/index.js index 3d24ba835..2d098c4d8 100644 --- a/packages/plugins/mocha-tests/src/lib/index.js +++ b/packages/plugins/mocha-tests/src/lib/index.js @@ -7,6 +7,7 @@ const Web3 = require('web3'); const Reporter = require('./reporter'); +const GAS_LIMIT = 6000000; const JAVASCRIPT_TEST_MATCH = /^.+\.js$/i; const TEST_TIMEOUT = 15000; // 15 seconds in milliseconds @@ -130,7 +131,7 @@ class MochaTestRunner { compiledContracts[contract.className] = {}; } instance.options.from = accounts[0]; - instance.options.gas = 900000; + instance.options.gas = GAS_LIMIT; Object.setPrototypeOf(compiledContracts[contract.className], instance); }