From d3bf1d6d212ceefbcc2e222b82d71ea463dfec01 Mon Sep 17 00:00:00 2001 From: Lawrence Wang Date: Tue, 10 Dec 2019 12:13:33 -0800 Subject: [PATCH] relax test precision --- .../test/migrations/SingleToMultiCdp.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/dai-plugin-migrations/test/migrations/SingleToMultiCdp.spec.js b/packages/dai-plugin-migrations/test/migrations/SingleToMultiCdp.spec.js index 97ff96364..7ce8d06a8 100644 --- a/packages/dai-plugin-migrations/test/migrations/SingleToMultiCdp.spec.js +++ b/packages/dai-plugin-migrations/test/migrations/SingleToMultiCdp.spec.js @@ -111,6 +111,7 @@ describe('SCD to MCD CDP Migration', () => { let cdp, proxyAddress; beforeEach(async () => { + jest.setTimeout(20000); snapshotData = await takeSnapshot(maker); proxyAddress = await maker.service('proxy').currentProxy(); await openLockAndDrawScdCdp(100); @@ -160,7 +161,7 @@ describe('SCD to MCD CDP Migration', () => { const mcdDebt = mcdCdp.debtValue.toNumber(); expect(mcdCollateral).toEqual(scdCollateral.toNumber()); - expect(mcdDebt).toBeCloseTo(scdDebt.toNumber()); + expect(mcdDebt).toBeCloseTo(scdDebt.toNumber(), 1); let message; try {