Skip to content

Commit 16aa96a

Browse files
author
Braydon Fuller
committed
Merge pull request #201 from kleetus/fix_regtest
Added a check for the right number of tip events.
2 parents f95d9bf + ee3bad5 commit 16aa96a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

integration/regtest.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,10 @@ describe('Daemon Binding Functionality', function() {
280280
it('will get an event when the tip is new', function(done) {
281281
this.timeout(4000);
282282
bitcoind.on('tip', function(height) {
283-
height.should.equal(151);
284-
done();
283+
if (height == 151) {
284+
height.should.equal(151);
285+
done();
286+
}
285287
});
286288
client.generate(1, function(err, response) {
287289
if (err) {

0 commit comments

Comments
 (0)