Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
decrease tolerance in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Padraic-O-Mhuiris committed Mar 2, 2020
1 parent ef248c7 commit c8823be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dai-plugin-mcd/test/ManagedCdp.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function expectValues(
expect(cdp.collateralAmount).toEqual(cdp.currency(collateral));
}
if (debt !== undefined) {
expect(cdp.debtValue.toNumber()).toBeCloseTo(debt, 1);
expect(cdp.debtValue.toNumber()).toBeCloseTo(debt, 0.9);
}
if (myGem !== undefined) {
const balance = await maker.getToken(cdp.currency).balance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ describe('SCD to MCD CDP Migration', () => {
const mcdDebt = mcdCdp.debtValue.toNumber();

expect(mcdCollateral).toEqual(scdCollateral.toNumber());
expect(mcdDebt).toBeCloseTo(scdDebt.toNumber(), 1);
expect(mcdDebt).toBeCloseTo(scdDebt.toNumber(), 0.9);

let message;
try {
Expand Down

0 comments on commit c8823be

Please sign in to comment.