test: use callback instead of ready event
This commit is contained in:
parent
bf080422ed
commit
522c822304
@ -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;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user