From ffa843603a744b7870d35f71d50b2d54f4952554 Mon Sep 17 00:00:00 2001 From: girazoki Date: Fri, 15 Nov 2024 15:22:15 +0100 Subject: [PATCH] remove containers from bridge tests (#748) * remove parachains from bridge tests * downgrade ethers * lock file * Revert "downgrade ethers" This reverts commit 8d1361183dddd647c9810b3de2a662a069004614. * Revert "lock file" This reverts commit b9fa195d7f0d06375ddb62414cf4397f92a75b57. * fix providers * fix test * fmt --- test/configs/zombieDancelightBridge.json | 19 ------------------- .../test-consensus-bridge.ts | 6 +++--- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/test/configs/zombieDancelightBridge.json b/test/configs/zombieDancelightBridge.json index 736206301..b7002f240 100644 --- a/test/configs/zombieDancelightBridge.json +++ b/test/configs/zombieDancelightBridge.json @@ -42,25 +42,6 @@ } ] }, - "parachains": [ - { - "id": 2000, - "chain": "dev", - "add_to_genesis": false, - "register_para": false, - "onboard_as_parachain": false, - "collators": [ - { - "name": "FullNode-2000", - "validator": false, - "chain": "dev", - "command": "../target/release/container-chain-simple-node", - "ws_port": 9949, - "p2p_port": 33049 - } - ] - } - ], "types": { "Header": { "number": "u64", diff --git a/test/suites/zombie-tanssi-relay-eth-bridge/test-consensus-bridge.ts b/test/suites/zombie-tanssi-relay-eth-bridge/test-consensus-bridge.ts index b37a69b21..4f313bd1d 100644 --- a/test/suites/zombie-tanssi-relay-eth-bridge/test-consensus-bridge.ts +++ b/test/suites/zombie-tanssi-relay-eth-bridge/test-consensus-bridge.ts @@ -124,16 +124,16 @@ describeSuite({ title: "Dancelight Blocks are being recognized on ethereum", test: async function () { const url = "ws://127.0.0.1:8546"; - const customHttpProvider = new ethers.providers.WebSocketProvider(url); + const customHttpProvider = new ethers.WebSocketProvider(url); const beefyContract = new ethers.Contract( beefyClientDetails.address, beefyClientDetails.abi, customHttpProvider ); - const currentBeefyBlock = (await beefyContract.latestBeefyBlock()).toNumber(); + const currentBeefyBlock = Number(await beefyContract.latestBeefyBlock()); expect(currentBeefyBlock).to.greaterThan(0); await waitSessions(context, relayApi, 1, null, "Tanssi-relay"); - const nextBeefyBlock = (await beefyContract.latestBeefyBlock()).toNumber(); + const nextBeefyBlock = Number(await beefyContract.latestBeefyBlock()); expect(nextBeefyBlock).to.greaterThan(currentBeefyBlock); }, });