From 40ddfff4259a851a37e70bbc5215acc9e532e54e Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 12 Feb 2017 09:54:09 -0500 Subject: [PATCH] support configuring simulator in the tests --- lib/test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {