support configuring simulator in the tests

This commit is contained in:
Iuri Matias 2017-02-12 09:54:09 -05:00
parent ff09e05965
commit 40ddfff425
1 changed files with 4 additions and 2 deletions

View File

@ -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) {