Skip to content

Commit

Permalink
test: adapt test to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Jul 11, 2023
1 parent 364d08e commit c23607b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/hardhat/Blue.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { BigNumber, Wallet, constants, utils } from "ethers";
import hre from "hardhat";
import { Blue, OracleMock, ERC20Mock, IrmMock } from "types";

const iterations = 500;
const iterations = 400;
const closePositions = false;
const nbLiquidations = 50;
// The liquidations gas test expects that 2*nbLiquidations + 1 is strictly less than the number of signers.
Expand Down Expand Up @@ -99,7 +99,7 @@ describe("Blue", () => {

it("should simulate gas cost [main]", async () => {
for (let i = 1; i < iterations; ++i) {
console.log(i, "/", iterations);
if (i % 20 == 0) console.log("main:", (100 * i) / iterations, "% complete");

const user = new Wallet(hexZeroPad(BigNumber.from(i).toHexString(), 32), hre.ethers.provider);
await setBalance(user.address, initBalance);
Expand Down

0 comments on commit c23607b

Please sign in to comment.