From 85a0c16eef58380ecb3ed2d1a00f3b23e0966604 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Tue, 10 May 2016 18:17:53 -0400 Subject: [PATCH] test: fixes for bitcoind regtest --- regtest/bitcoind.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/regtest/bitcoind.js b/regtest/bitcoind.js index 9d729845..fecdd1fc 100644 --- a/regtest/bitcoind.js +++ b/regtest/bitcoind.js @@ -201,6 +201,7 @@ describe('Bitcoind Functionality', function() { it('will get error with number greater than tip', function(done) { bitcoind.getBlock(1000000000, function(err, response) { should.exist(err); + err.code.should.equal(-8); done(); }); }); @@ -242,6 +243,7 @@ describe('Bitcoind Functionality', function() { if (err) { throw err; } + response.should.be.instanceOf(Buffer); assert(response.toString('hex') === txhex, 'incorrect tx data result'); done(); }); @@ -423,7 +425,7 @@ describe('Bitcoind Functionality', function() { }); describe('get transaction with block info', function() { - it('should include tx buffer, height and timestamp', function(done) { + it('should include tx with height and timestamp', function(done) { bitcoind.getTransactionWithBlockInfo(utxos[0].txid, function(err, tx) { if (err) { return done(err);