diff --git a/lib/tests/test.js b/lib/tests/test.js index b79f81c1..04877a8f 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); }); };