Commit 1bc2250
test(perps): skip reduce-only-without-position test on external liquidity
`test_perp_reduce_only_rejected_without_position` rests a setup maker SELL at
oracle*1.04 to give the reduce-only IOC a counterparty. When the shared devnet
book has external liquidity (an MM bot quoting near pool price, ~+16% over
oracle), that maker SELL crosses immediately instead of resting, and settling
the resulting fill against the external counterparty currently 500s (off-chain
settlement-robustness bug, PRO-191) — so the test fails hard instead of skipping.
Add the same `skip_if_external_liquidity` guard its siblings already use (e.g.
`test_perp_ioc_taker_buy_matches_maker_sell`) so it self-skips on a dirty book.
Verified: the test now SKIPS cleanly against the live devnet book.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e5f7446 commit 1bc2250
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
197 | 211 | | |
198 | 212 | | |
199 | 213 | | |
| |||
0 commit comments