node sync integration test
This commit is contained in:
parent
9f6e340364
commit
508eafa393
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
var BlockDb = require('../../lib/BlockDb').class();
|
||||
var height_needed = 180000;
|
||||
var bDb = new BlockDb();
|
||||
|
||||
var expect = require('chai').expect;
|
||||
|
||||
describe('Node check', function() {
|
||||
it('should contain block ' + height_needed, function(done) {
|
||||
bDb.blockIndex(height_needed, function(err, b) {
|
||||
expect(err).to.equal(null);
|
||||
expect(b).to.not.equal(null);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue