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();