From 1c6a1b8b6944d64c486717536ad887baf5937b45 Mon Sep 17 00:00:00 2001 From: Victor Oliva Date: Fri, 6 Sep 2024 10:13:07 +0200 Subject: [PATCH] fix build-block tests --- packages/e2e/src/build-block.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/e2e/src/build-block.test.ts b/packages/e2e/src/build-block.test.ts index 73c58012..7d5d655b 100644 --- a/packages/e2e/src/build-block.test.ts +++ b/packages/e2e/src/build-block.test.ts @@ -32,14 +32,14 @@ describe.runIf(process.env.CI || process.env.RUN_ALL).each([ { chain: 'Westmint', endpoint: 'wss://westmint-rpc.polkadot.io' }, { chain: 'Westend Collectives', endpoint: 'wss://sys.ibp.network/collectives-westend' }, ])('Latest $chain can build blocks', async ({ endpoint, storage }) => { - const { setup, teardownAll } = await setupAll({ endpoint }) + const { setupPjs, teardownAll } = await setupAll({ endpoint }) afterAll(async () => { await teardownAll() }) it('build blocks', { timeout: 300_000, retry: 1 }, async () => { - const { chain, ws, teardown } = await setup() + const { chain, ws, teardown } = await setupPjs() storage && (await ws.send('dev_setStorage', [storage])) const blockNumber = chain.head.number await ws.send('dev_newBlock', [{ count: 2 }]) @@ -48,7 +48,7 @@ describe.runIf(process.env.CI || process.env.RUN_ALL).each([ }) it('build block using unsafeBlockHeight', async () => { - const { chain, ws, teardown } = await setup() + const { chain, ws, teardown } = await setupPjs() storage && (await ws.send('dev_setStorage', [storage])) const blockNumber = chain.head.number const unsafeBlockHeight = blockNumber + 100