From a29bcdd8037b95a517a0ad7ba3f164abf251e7cc Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Mon, 31 Oct 2022 08:54:33 +0000 Subject: [PATCH] Wait node producing blocks before all tests --- --- a/tests/src/util/globalSetup.ts +++ b/tests/src/util/globalSetup.ts @@ -9,13 +9,16 @@ const globalSetup = async (): Promise => { await usingPlaygrounds(async (helper, privateKey) => { try { - // 1. Create donors for test files + // 1. Wait node producing blocks + await helper.wait.newBlocks(1); + + // 2. Create donors for test files await fundFilenamesWithRetries(3) .then((result) => { if (!result) Promise.reject(); }); - // 2. Set up App Promotion admin + // 3. Set up App Promotion admin const missingPallets = helper.fetchMissingPalletNames([Pallets.AppPromotion]); if (missingPallets.length === 0) { const superuser = await privateKey('//Alice'); -- gitstuff