From c27c56805f84ed33eed12df96f6b9e168744384e Mon Sep 17 00:00:00 2001 From: Parth Desai Date: Mon, 2 Dec 2024 18:11:14 +0400 Subject: [PATCH] use multiple validators --- .../test_zombie_tanssi_relay_eth_bridge.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 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 def6811f7..eaf495d01 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 @@ -172,8 +172,12 @@ describeSuite({ const externalValidatorsBefore = await relayApi.query.externalValidators.externalValidators(); - const rawValidators = ["0x1234567890123456789012345678901234567890123456789012345678901234"]; - + const rawValidators = [ + "0x1234567890123456789012345678901234567890123456789012345678901234", + "0x7894567890123456789012345678901234567890123456789012345678901234", + "0x4564567890123456789012345678901234567890123456789012345678901234", + ]; + try { const tx = await gatewayContract.sendOperatorsData(rawValidators, 1); await tx.wait(); @@ -185,7 +189,7 @@ describeSuite({ await waitSessions(context, relayApi, 2, null, "Tanssi-relay"); const externalValidators = await relayApi.query.externalValidators.externalValidators(); - expect(externalValidators).to.not.eq(externalValidatorsBefore); + expect(externalValidators).to.not.deep.eq(externalValidatorsBefore); const externalValidatorsHex = externalValidators.toJSON().map((x) => { return u8aToHex(decodeAddress(x));