support configuring simulator in the tests
This commit is contained in:
parent
ff09e05965
commit
40ddfff425
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue