From 280db4ca95e115f5f28478565d32dd9917cbad4f Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Thu, 22 Dec 2016 23:52:20 +0100 Subject: [PATCH] [fix] #749 12/13 Tests regression fix --- test/integration/branches_revert_memberships.js | 2 +- test/integration/wotb.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/branches_revert_memberships.js b/test/integration/branches_revert_memberships.js index 3b85b126f..354794680 100644 --- a/test/integration/branches_revert_memberships.js +++ b/test/integration/branches_revert_memberships.js @@ -94,7 +94,7 @@ describe("Revert memberships", function() { it('should exist a leaver', () => co(function*() { yield i3.leave(); - yield s1.commit({ time: now + 100 }); + yield s1.commit({ time: now + 80 }); yield s1.expect('/blockchain/current', (res) => { // (res.medianTime - now).should.equal(27); res.should.have.property('membersCount').equal(3); diff --git a/test/integration/wotb.js b/test/integration/wotb.js index dba6cd0f1..4aa0e4f59 100644 --- a/test/integration/wotb.js +++ b/test/integration/wotb.js @@ -278,14 +278,14 @@ describe("WOTB module", function() { it('third & fourth commits: toc should have joined', function() { return co(function *() { yield commit(s3)({ - time: now + 2800 + time: now + 2400 }); // MedianTime is now +500 for next certs yield toc3.createIdentity(); yield toc3.join(); yield tic3.cert(toc3); yield commit(s3)({ - time: now + 5000 + time: now + 4000 }); // MedianTime is now +1000 for next certs /** @@ -307,7 +307,7 @@ describe("WOTB module", function() { return co(function *() { yield toc3.cert(tic3); yield commit(s3)({ - time: now + 5000 + time: now + 4000 }); /** * cat tic <==> toc @@ -327,7 +327,7 @@ describe("WOTB module", function() { it('sixth commit: cat is gone with its certs', function() { return co(function *() { yield commit(s3)({ - time: now + 5000 + time: now + 2500 }); /** * tic <-- toc -- GitLab