From e8ada7bf7939a8adf8d5a31185530a24dbf28932 Mon Sep 17 00:00:00 2001 From: Jeffery Walsh Date: Mon, 9 Jan 2023 16:27:10 -0800 Subject: [PATCH] fix test that breaks now that we check id --- packages/protocol/test/L1/TaikoL1.test.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/protocol/test/L1/TaikoL1.test.ts b/packages/protocol/test/L1/TaikoL1.test.ts index 5b25613a330..5a1d23f7fed 100644 --- a/packages/protocol/test/L1/TaikoL1.test.ts +++ b/packages/protocol/test/L1/TaikoL1.test.ts @@ -169,7 +169,9 @@ describe("integration:TaikoL1", function () { ); l2Signer = await l2Provider.getSigner( - (await l2Provider.listAccounts())[0] + ( + await l2Provider.listAccounts() + )[0] ); const addressManager = await ( @@ -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 () {