Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion test/suites/dev/moonbase/test-txpool/test-txpool-limits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ describeSuite({
}

await context.createBlock();
const maxTxnLen = (await getBlockWithRetry(context)).transactions.length;
const block = await getBlockWithRetry(context, { blockNumber: 1n });
const maxTxnLen = block.transactions.length;
log(`out ${maxTxnLen}`);
expect(maxTxnLen).toBeGreaterThan(2300);
},
Expand Down
21 changes: 13 additions & 8 deletions test/suites/zombie/test_para.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,19 @@ describeSuite({
id: "T04",
title: "Tags are present on emulated Ethereum blocks",
test: async () => {
expect(
(await context.ethers().provider?.getBlock("safe"))?.number,
"Safe tag is not present"
).to.be.greaterThan(0);
expect(
(await context.ethers().provider?.getBlock("finalized"))?.number,
"Finalized tag is not present"
).to.be.greaterThan(0);
const waitForTag = async (tag: "safe" | "finalized", maxAttempts = 15) => {
for (let attempt = 0; attempt < maxAttempts; attempt++) {
const block = await context.ethers().provider?.getBlock(tag);
if (typeof block?.number === "number" && block.number > 0) {
return block.number;
}
await context.waitBlock(1);
}
return undefined;
};

expect(await waitForTag("safe"), "Safe tag is not present").to.be.greaterThan(0);
expect(await waitForTag("finalized"), "Finalized tag is not present").to.be.greaterThan(0);
const latestBlock = await context.ethers().provider?.getBlock("latest");
expect(latestBlock, "Latest tag is not present").to.not.equal(null);
expect(latestBlock?.number, "Latest tag is not present").to.be.greaterThan(0);
Expand Down
Loading