From 01713ed8470225f4eee0763ddb665e897a493843 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Tue, 17 Dec 2024 11:10:42 -0800 Subject: [PATCH] test: disabled operators --- .../fast-usdc/test/exos/transaction-feed.test.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/fast-usdc/test/exos/transaction-feed.test.ts b/packages/fast-usdc/test/exos/transaction-feed.test.ts index 5f11c504dc2..ff3f2705aa6 100644 --- a/packages/fast-usdc/test/exos/transaction-feed.test.ts +++ b/packages/fast-usdc/test/exos/transaction-feed.test.ts @@ -79,6 +79,21 @@ test('happy aggregation', async t => { }); }); +test('disabled operator', async t => { + const feedKit = makeFeedKit(); + const { op1 } = await makeOperators(feedKit); + const evidence = MockCctpTxEvidences.AGORIC_PLUS_OSMO(); + + // works before disabling + await op1.operator.submitEvidence(evidence); + + op1.admin.disable(); + + await t.throwsAsync(() => op1.operator.submitEvidence(evidence), { + message: 'submitEvidence for disabled operator', + }); +}); + // TODO: find a way to get this working test.skip('forged source', async t => { const feedKit = makeFeedKit();