Skip to content

Commit ea5330e

Browse files
committed
tests: fix oracle guardrail test
1 parent 7166052 commit ea5330e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/oracleFillPriceGuardrails.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
mockUserUSDCAccount,
2525
setFeedPriceNoProgram,
2626
} from './testHelpers';
27-
import { MARGIN_PRECISION, OrderType, PostOnlyParams } from '../sdk';
27+
import { MARGIN_PRECISION, OrderType, PerpOperation, PostOnlyParams } from '../sdk';
2828
import { startAnchor } from 'solana-bankrun';
2929
import { TestBulkAccountLoader } from '../sdk/src/accounts/testBulkAccountLoader';
3030
import { BankrunContextWrapper } from '../sdk/src/bankrun/bankrunConnection';
@@ -144,6 +144,8 @@ describe('oracle fill guardrails', () => {
144144
usdcAmount,
145145
userUSDCAccount.publicKey
146146
);
147+
148+
await fillerDriftClient.updatePerpMarketPausedOperations(0, PerpOperation.AMM_FILL);
147149
});
148150

149151
beforeEach(async () => {

0 commit comments

Comments
 (0)