From 698ae905adbce5db63d74f86d8b11a3d9d69e2de Mon Sep 17 00:00:00 2001 From: nanocryk <6422796+nanocryk@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:33:59 +0100 Subject: [PATCH] working test --- .../test_zombie_tanssi_relay_eth_bridge.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/suites/zombie_tanssi_relay_eth_bridge/test_zombie_tanssi_relay_eth_bridge.ts b/test/suites/zombie_tanssi_relay_eth_bridge/test_zombie_tanssi_relay_eth_bridge.ts index c3acbf51a..9c5669bad 100644 --- a/test/suites/zombie_tanssi_relay_eth_bridge/test_zombie_tanssi_relay_eth_bridge.ts +++ b/test/suites/zombie_tanssi_relay_eth_bridge/test_zombie_tanssi_relay_eth_bridge.ts @@ -45,7 +45,6 @@ describeSuite({ const relayNetwork = relayApi.consts.system.version.specName.toString(); expect(relayNetwork, "Relay API incorrect").to.contain("dancelight"); - relayCharlieApi = context.polkadotJs("Tanssi-charlie"); // //BeaconRelay @@ -237,15 +236,17 @@ describeSuite({ id: "T04", title: "Operator produces blocks", test: async function () { - console.log(`operator address: ${operatorAccount.address}`); + // wait a bit more + await waitSessions(context, relayApi, 6, null, "Tanssi-relay"); - for(let i = 0; i < 20; ++i) { + for (let i = 0; i < 20; ++i) { const latestBlockHash = await relayApi.rpc.chain.getBlockHash(); const author = (await relayApi.derive.chain.getHeader(latestBlockHash)).author; - console.log(`author: ${author.toJSON()}`); if (author == operatorAccount.address) { return; } + + await context.waitBlock(2, "Tanssi-relay"); } expect.fail("operator didn't produce a block");