Skip to content

Commit

Permalink
fix test that breaks now that we check id
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jan 10, 2023
1 parent cc639ca commit e8ada7b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/protocol/test/L1/TaikoL1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ describe("integration:TaikoL1", function () {
);

l2Signer = await l2Provider.getSigner(
(await l2Provider.listAccounts())[0]
(
await l2Provider.listAccounts()
)[0]
);

const addressManager = await (
Expand Down Expand Up @@ -267,11 +269,10 @@ describe("integration:TaikoL1", function () {
});

describe("getProposedBlock()", function () {
it("proposed block does not exist", async function () {
const block = await taikoL1.getProposedBlock(123);
expect(block[0]).to.be.eq(ethers.constants.HashZero);
expect(block[1]).to.be.eq(ethers.constants.AddressZero);
expect(block[2]).to.be.eq(BigNumber.from(0));
it("reverts when id is not a valid proposed block in range", async function () {
await expect(taikoL1.getProposedBlock(123)).to.be.revertedWith(
"L1:id"
);
});
});
describe("commitBlock() -> proposeBlock() integration", async function () {
Expand Down

0 comments on commit e8ada7b

Please sign in to comment.