Skip to content

Commit

Permalink
fix: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Valeri committed Jan 5, 2022
1 parent 82758e9 commit 2cd4dcc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test-suites/validation-logic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,32 +742,29 @@ makeSuite('ValidationLogic: Edge cases', (testEnv: TestEnv) => {
*/
const { pool, configurator, helpersContract, poolAdmin, users, dai, aDai } = testEnv;
const user = users[0];
console.log(1);

const configBefore = await helpersContract.getReserveConfigurationData(dai.address);
expect(configBefore.isActive).to.be.eq(true);
expect(configBefore.isFrozen).to.be.eq(false);
console.log(2);

await configurator.connect(poolAdmin.signer).setReserveActive(dai.address, false);

const configAfter = await helpersContract.getReserveConfigurationData(dai.address);
expect(configAfter.isActive).to.be.eq(false);
expect(configAfter.isFrozen).to.be.eq(false);
console.log(3);

await impersonateAccountsHardhat([pool.address]);
const poolSigner = await hre.ethers.getSigner(pool.address);
await topUpNonPayableWithEther(user.signer, [pool.address], utils.parseEther('1'));
expect(await aDai.connect(poolSigner).mint(user.address, user.address, 1, 1));
console.log(4);

await expect(
pool.connect(user.signer).setUserUseReserveAsCollateral(dai.address, true)
).to.be.revertedWith(RESERVE_INACTIVE);
console.log(5);

await expect(
pool.connect(user.signer).setUserUseReserveAsCollateral(dai.address, false)
).to.be.revertedWith(RESERVE_INACTIVE);
console.log(6);
});

it('validateSetUseReserveAsCollateral() with userBalance == 0 (revert expected)', async () => {
Expand Down

0 comments on commit 2cd4dcc

Please sign in to comment.