Skip to content

Commit

Permalink
test: added check whether event is emitted when setting external vali…
Browse files Browse the repository at this point in the history
…dators through middleware contract for test_zombie_tanssi_relay_eth_bridge.ts

Signed-off-by: Aleksandar Brayanov <[email protected]>
  • Loading branch information
chexware committed Feb 12, 2025
1 parent 759cc6e commit c0c0435
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,17 @@ describeSuite({
"Tanssi-relay"
);

await relayApi.query.system.events((events) => {
events.forEach(({ event }) => {
if (relayApi.events.externalValidators.ExternalValidatorsSet.is(event)) {
console.log("Event emitted when setting external validators");
return true;
}
});
console.log("No event emitted when setting external validators");
return false;
});

const externalValidators = await relayApi.query.externalValidators.externalValidators();
expect(externalValidators).to.not.deep.eq(externalValidatorsBefore);

Expand Down

0 comments on commit c0c0435

Please sign in to comment.