test: check height from tip event in cluster regtest
This commit is contained in:
parent
85a0c16eef
commit
26c87ea32a
@ -156,7 +156,8 @@ describe('Bitcoin Cluster', function() {
|
|||||||
|
|
||||||
it('step 2: receive block events', function(done) {
|
it('step 2: receive block events', function(done) {
|
||||||
this.timeout(10000);
|
this.timeout(10000);
|
||||||
node.services.bitcoind.once('tip', function() {
|
node.services.bitcoind.once('tip', function(height) {
|
||||||
|
height.should.equal(1);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
node.generateBlock(1, function(err, hashes) {
|
node.generateBlock(1, function(err, hashes) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user