From 31d3af2039adc8a556e2ed125b28af4a7a16a371 Mon Sep 17 00:00:00 2001 From: Piotr Dyraga Date: Wed, 26 Jan 2022 10:52:15 +0100 Subject: [PATCH] Unit test fix: check getPastVotes on coveragePool We should check getPastVotes on coveragePool and not on the collateralToken - we are testing coveragePool behavior here. --- test/CoveragePool.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CoveragePool.test.js b/test/CoveragePool.test.js index 5f320de2..b59222ab 100644 --- a/test/CoveragePool.test.js +++ b/test/CoveragePool.test.js @@ -488,7 +488,7 @@ describe("CoveragePool", () => { it("should return zero", async () => { expect( - await collateralToken.getPastVotes( + await coveragePool.getPastVotes( thirdParty.address, lastFinalizedBlock )