Skip to content

Commit

Permalink
fix build-block tests
Browse files Browse the repository at this point in the history
  • Loading branch information
voliva committed Sep 6, 2024
1 parent edbe8ff commit 1c6a1b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/e2e/src/build-block.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }])
Expand All @@ -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
Expand Down

0 comments on commit 1c6a1b8

Please sign in to comment.