Merge pull request #201 from kleetus/fix_regtest

Added a check for the right number of tip events.
This commit is contained in:
Braydon Fuller 2015-09-08 16:46:09 -04:00
commit 16aa96a217
1 changed files with 4 additions and 2 deletions

View File

@ -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) {