Merge pull request #201 from kleetus/fix_regtest
Added a check for the right number of tip events.
This commit is contained in:
commit
16aa96a217
|
@ -280,8 +280,10 @@ describe('Daemon Binding Functionality', function() {
|
|||
it('will get an event when the tip is new', function(done) {
|
||||
this.timeout(4000);
|
||||
bitcoind.on('tip', function(height) {
|
||||
height.should.equal(151);
|
||||
done();
|
||||
if (height == 151) {
|
||||
height.should.equal(151);
|
||||
done();
|
||||
}
|
||||
});
|
||||
client.generate(1, function(err, response) {
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in New Issue