Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Braydon Fuller committed Dec 14, 2017
1 parent bab585a commit 19067d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/monitor/config.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('Monitor Config', function() {
minInterval: '5m',
queryNumber: 100,
pingConcurrency: 10,
timeoutRateThreshold: 0.04
timeoutRateThreshold: 0.1585
}
};

Expand Down
10 changes: 5 additions & 5 deletions test/monitor/index.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,19 +907,19 @@ describe('Monitor', function() {
address: '127.0.0.1',
port: 1337,
recordTimeoutFailure: recordTimeoutFailure,
timeoutRate: 0.05
timeoutRate: 0.159
}, {
nodeID: 'dd985ca22f19858257b3328a56f8f4aabee1d4a1',
address: '127.0.0.1',
port: 1337,
recordTimeoutFailure: recordTimeoutFailure,
timeoutRate: 0.02
timeoutRate: 0.12
}, {
nodeID: '6ae62b18fc9d20139c933e66f3b2fd2f8d04c20d',
address: '127.0.0.1',
port: 1337,
recordTimeoutFailure: recordTimeoutFailure,
timeoutRate: 0.03
timeoutRate: 0.13
}];

const exec = sandbox.stub().callsArgWith(0, null, contacts);
Expand Down Expand Up @@ -948,7 +948,7 @@ describe('Monitor', function() {
expect(find.callCount).to.equal(1);
expect(find.args[0][0]).to.eql({
$or: [
{ timeoutRate: { $lt: 0.04 } },
{ timeoutRate: { $lt: 0.1585 } },
{ timeoutRate: { $exists: false } }
]
});
Expand Down Expand Up @@ -985,7 +985,7 @@ describe('Monitor', function() {
expect(log.warn.args[0][1])
.to.equal('7b8b30132e930c7827ee47efebfb197d6a3246d4');
expect(log.warn.args[0][2])
.to.equal(0.05);
.to.equal(0.159);
expect(monitor._replicateFarmer.callCount).to.equal(1);
expect(monitor._replicateFarmer.args[0][0])
.to.be.instanceOf(storj.Contact);
Expand Down

0 comments on commit 19067d2

Please sign in to comment.