test: verify amendment rejection without order-state events
This commit is contained in:
@@ -8345,7 +8345,10 @@ mod tests {
|
|||||||
assert_eq!(orders[0].requested_quantity, 200);
|
assert_eq!(orders[0].requested_quantity, 200);
|
||||||
assert_eq!(orders[0].remaining_quantity, 200);
|
assert_eq!(orders[0].remaining_quantity, 200);
|
||||||
assert_eq!(orders[0].limit_price, 10.0);
|
assert_eq!(orders[0].limit_price, 10.0);
|
||||||
assert!(report.order_events.last().unwrap().reason.contains("strategy_buy_condition_false"));
|
assert!(report.order_events.is_empty());
|
||||||
|
let event = report.process_events.last().unwrap();
|
||||||
|
assert_eq!(event.kind, crate::events::ProcessEventKind::OrderUpdateReject);
|
||||||
|
assert!(event.detail.contains("strategy_buy_condition_false"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user