diff --git a/lib/tests/test.js b/lib/tests/test.js index b79f81c15..04877a8fa 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -52,10 +52,7 @@ var Test = function(options) { Test.prototype.getAccounts = function(cb) { this.web3.eth.getAccounts(function(err, accounts) { - if (err) { - throw new Error(err); - } - cb(accounts); + cb(err, accounts); }); };