fix contract app test by increasing gas

This commit is contained in:
Jonathan Rainville 2019-12-18 09:42:55 -05:00 committed by Iuri Matias
parent 1bc967c6d1
commit 1201879bdc
1 changed files with 2 additions and 1 deletions

View File

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