From 26798c366c4f863e68da20bf911147dc5c310c8c Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Mon, 31 Oct 2022 18:24:52 +0000 Subject: [PATCH] Wait up to 30 minutes for the block by default --- --- a/tests/src/util/playgrounds/unique.dev.ts +++ b/tests/src/util/playgrounds/unique.dev.ts @@ -423,7 +423,7 @@ } async forParachainBlockNumber(blockNumber: bigint, timeout?: number) { - timeout = timeout ?? 300_000; + timeout = timeout ?? 30 * 60 * 1000; // eslint-disable-next-line no-async-promise-executor const promise = new Promise(async (resolve) => { const unsubscribe = await this.helper.getApi().rpc.chain.subscribeNewHeads((data: any) => { @@ -438,7 +438,7 @@ } async forRelayBlockNumber(blockNumber: bigint, timeout?: number) { - timeout = timeout ?? 300_000; + timeout = timeout ?? 30 * 60 * 1000; // eslint-disable-next-line no-async-promise-executor const promise = new Promise(async (resolve) => { const unsubscribe = await this.helper.getApi().query.parachainSystem.validationData((data: any) => { -- gitstuff