Skip to content

Commit

Permalink
Test cautious synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
c-geek committed Jul 5, 2016
1 parent 831d4a7 commit 4c4eb23
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/integration/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ describe("CLI", function() {
res.should.have.length(0);
}));

it('sync 10 blocks', () => co(function*() {
it('sync 2200 blocks (fast)', () => co(function*() {
yield execute(['reset', 'data']);
yield execute(['sync', 'duniter.org', '8999', '9', '--nointeractive']);
yield execute(['sync', 'duniter.org', '8999', '2200', '--nointeractive']);
const res = yield execute(['export-bc', '--nostdout']);
res.should.have.length(10);
res.should.have.length(2200 + 1);
}));

it('sync 5 blocks (cautious)', () => co(function*() {
yield execute(['sync', 'duniter.org', '8999', '2204', '--nointeractive']);
const res = yield execute(['export-bc', '--nostdout']);
res.should.have.length(2204 + 1);
}));

it('[spawn] reset data', () => co(function*() {
Expand Down

0 comments on commit 4c4eb23

Please sign in to comment.