From 3f5e63f05552f9170a5b1b4e1b47c8416aa1137b Mon Sep 17 00:00:00 2001 From: MerlinEgalite Date: Sat, 27 Nov 2021 14:11:18 +0100 Subject: [PATCH] test(aave): fix one test --- test/aave.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/aave.js b/test/aave.js index 6f962c685..a9aa06983 100644 --- a/test/aave.js +++ b/test/aave.js @@ -164,8 +164,8 @@ describe('PositionsManagerForAave Contract', () => { it('Only Owner should be able to create markets in peer-to-peer', async () => { expect(marketsManagerForAave.connect(supplier1).createMarket(config.tokens.aWeth.address, utils.parseUnits('1'), MAX_INT)).to.be.reverted; - expect(marketsManagerForAave.connect(borrower1).createMarket(config.tokens.aWeth.address, utils.parseUnits('1')), MAX_INT).to.be.reverted; - expect(marketsManagerForAave.connect(owner).createMarket(config.tokens.aWeth.address, utils.parseUnits('1')), MAX_INT).not.be.reverted; + expect(marketsManagerForAave.connect(borrower1).createMarket(config.tokens.aWeth.address, utils.parseUnits('1'), MAX_INT)).to.be.reverted; + expect(marketsManagerForAave.connect(owner).createMarket(config.tokens.aWeth.address, utils.parseUnits('1'), MAX_INT)).not.to.be.reverted; }); it('marketsManagerForAave should not be changed after already set by Owner', async () => {