Skip to content

Commit fa149fe

Browse files
committed
test: restore a skipped test
1 parent efea0dd commit fa149fe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/0.8.9/sanityChecker/oracleReportSanityChecker.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ import { TOTAL_BASIS_POINTS } from "lib/constants";
1919

2020
import { Snapshot } from "test/suite";
2121

22-
const MAX_UINT16 = 2 ** 16;
23-
const MAX_UINT32 = 2 ** 32;
24-
const MAX_UINT64 = 2 ** 64;
22+
const MAX_UINT16 = BigInt(2 ** 16);
23+
const MAX_UINT32 = BigInt(2 ** 32);
24+
const MAX_UINT64 = BigInt(2 ** 64);
2525

2626
describe("OracleReportSanityChecker.sol", () => {
2727
let checker: OracleReportSanityChecker;
28+
2829
let locator: LidoLocator__MockForSanityChecker;
2930
let burner: Burner__MockForSanityChecker;
3031
let accounting: Accounting__MockForSanityChecker;
@@ -455,9 +456,8 @@ describe("OracleReportSanityChecker.sol", () => {
455456
);
456457
});
457458

458-
// TODO: check why this is not work, it should be reverted with `IncorrectLimitValue`
459-
it.skip("reverts if limit is greater than max", async () => {
460-
await expect(checker.connect(manager).setMaxPositiveTokenRebase(MAX_UINT64)).to.be.revertedWithCustomError(
459+
it("reverts if limit is greater than max", async () => {
460+
await expect(checker.connect(manager).setMaxPositiveTokenRebase(MAX_UINT64 + 1n)).to.be.revertedWithCustomError(
461461
checker,
462462
"IncorrectLimitValue",
463463
);
@@ -1261,7 +1261,7 @@ describe("OracleReportSanityChecker.sol", () => {
12611261
.withArgs(annualBalanceIncrease);
12621262
});
12631263

1264-
it("reverts when ammount of appeared validators is greater than possible", async () => {
1264+
it("reverts when amount of appeared validators is greater than possible", async () => {
12651265
const insaneValidators = 100000n;
12661266
await expect(
12671267
checker

0 commit comments

Comments
 (0)