test: use callback instead of ready event

This commit is contained in:
Braydon Fuller 2016-05-18 00:24:08 -04:00
parent bf080422ed
commit 522c822304

View File

@ -69,7 +69,10 @@ describe('Node Functionality', function() {
log.error(err); log.error(err);
}); });
node.on('ready', function() { node.start(function(err) {
if (err) {
return done(err);
}
client = new BitcoinRPC({ client = new BitcoinRPC({
protocol: 'http', protocol: 'http',
@ -94,12 +97,7 @@ describe('Node Functionality', function() {
throw err; throw err;
} }
}); });
});
node.start(function(err) {
if (err) {
throw err;
}
}); });