difftreelog
Wait node producing blocks before all tests
in: master
1 file changed
tests/src/util/globalSetup.tsdiffbeforeafterboth9const globalSetup = async (): Promise<void> => {9const globalSetup = async (): Promise<void> => {10 await usingPlaygrounds(async (helper, privateKey) => {10 await usingPlaygrounds(async (helper, privateKey) => {11 try {11 try {12 // 1. Wait node producing blocks13 await helper.wait.newBlocks(1);1412 // 1. Create donors for test files15 // 2. Create donors for test files13 await fundFilenamesWithRetries(3)16 await fundFilenamesWithRetries(3)14 .then((result) => {17 .then((result) => {15 if (!result) Promise.reject();18 if (!result) Promise.reject();16 });19 });172018 // 2. Set up App Promotion admin 21 // 3. Set up App Promotion admin 19 const missingPallets = helper.fetchMissingPalletNames([Pallets.AppPromotion]);22 const missingPallets = helper.fetchMissingPalletNames([Pallets.AppPromotion]);20 if (missingPallets.length === 0) {23 if (missingPallets.length === 0) {21 const superuser = await privateKey('//Alice');24 const superuser = await privateKey('//Alice');