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
1 changed files with 4 additions and 6 deletions

View File

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