test: check height from tip event in cluster regtest

This commit is contained in:
Braydon Fuller 2016-05-10 18:19:58 -04:00
parent 85a0c16eef
commit 26c87ea32a
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,8 @@ describe('Bitcoin Cluster', function() {
it('step 2: receive block events', function(done) {
this.timeout(10000);
node.services.bitcoind.once('tip', function() {
node.services.bitcoind.once('tip', function(height) {
height.should.equal(1);
done();
});
node.generateBlock(1, function(err, hashes) {