Skip to content
Snippets Groups Projects
Commit 280db4ca authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #749 12/13 Tests regression fix

parent bb68e13a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment