Skip to content

Commit

Permalink
test: disabled operators
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Dec 17, 2024
1 parent 9ceffb8 commit 01713ed
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/fast-usdc/test/exos/transaction-feed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 01713ed

Please sign in to comment.