From 8777478aeba41f14cbf30a283785a11354d93c93 Mon Sep 17 00:00:00 2001 From: oXtxNt9U <120286271+oXtxNt9U@users.noreply.github.com> Date: Thu, 29 May 2025 09:25:11 +0900 Subject: [PATCH 1/2] try fix flaky check --- tests/e2e/clients/source/general.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/e2e/clients/source/general.test.ts b/tests/e2e/clients/source/general.test.ts index db147e1dba..ff524a181f 100644 --- a/tests/e2e/clients/source/general.test.ts +++ b/tests/e2e/clients/source/general.test.ts @@ -51,18 +51,21 @@ describe<{ it("Block - should get latest block", async ({ localClient, clients }) => { const lastBlock = await localClient.getBlock("latest"); + // Chain moved + assert.true(parseInt(lastBlock.number) > 0); + for (const client of clients) { - const b = await client.getBlock("latest"); + const b = await client.getBlock(lastBlock.number); compareBlocks(assert, lastBlock, b); } }); it("Block - should get genesis block", async ({ localClient, clients }) => { - const lastBlock = await localClient.getBlock(0); + const genesisBlock = await localClient.getBlock(0); for (const client of clients) { const b = await client.getBlock(0); - compareBlocks(assert, lastBlock, b); + compareBlocks(assert, genesisBlock, b); } }); From 3bcce4988a156f6fd778ec5cdbce643a98771e45 Mon Sep 17 00:00:00 2001 From: oXtxNt9U <120286271+oXtxNt9U@users.noreply.github.com> Date: Thu, 29 May 2025 09:26:24 +0900 Subject: [PATCH 2/2] empty commit