diff --git a/lib/test.js b/lib/test.js index c5cb1d62..1538c4ab 100644 --- a/lib/test.js +++ b/lib/test.js @@ -7,7 +7,9 @@ var TestLogger = require('./test_logger.js'); var Config = require('./config.js'); var ABIGenerator = require('./abi.js'); -var Test = function(options) { +var Test = function(_options) { + var options = _options || {}; + var simOptions = options.simulatorOptions || {}; try { this.sim = require('ethereumjs-testrpc'); @@ -27,7 +29,7 @@ var Test = function(options) { } this.web3 = new Web3(); - this.web3.setProvider(this.sim.provider()); + this.web3.setProvider(this.sim.provider(simOptions)); }; Test.prototype.deployAll = function(contractsConfig, cb) {