This commit is contained in:
Chris Kleeschulte 2017-05-10 15:45:37 -04:00
parent f452d63d75
commit 67517be6d4
2 changed files with 15 additions and 4 deletions

View File

@ -132,9 +132,13 @@ describe('DB Operations', function() {
req.on('end', function() {
var body = JSON.parse(data);
//console.log('request', body);
if (debug) {
console.log('request', body);
}
var response = JSON.stringify({ result: responses[responseCount++] });
//console.log('response', response, 'id: ', body.id);
if (debug) {
console.log('response', response, 'id: ', body.id);
}
res.write(response);
res.end();
});
@ -204,7 +208,7 @@ function publishBlockHash(blockHash, callback) {
return callback(err);
}
blockHash.should.equal(JSON.parse(res).hash);
blockHash.should.equal(JSON.parse(res).dbhash);
callback();
});

View File

@ -24,6 +24,7 @@ var rpcConfig = {
var bitcoin = {
args: {
datadir: bitcoinDataDir,
txindex: 1,
listen: 0,
regtest: 1,
server: 1,
@ -192,7 +193,13 @@ describe('Wallet Operations', function() {
it('should get list of transactions', function(done) {
utils.getListOfTxs.call(utils, self.opts, done);
utils.waitForBitcoreNode(self.opts, function(err) {
if(err) {
return done(err);
}
utils.getListOfTxs.call(utils, self.opts, done);
});
});