From bfbf8980274b978c840e707df3b377ba6cf4993f Mon Sep 17 00:00:00 2001 From: boris Date: Fri, 11 Sep 2026 15:19:18 +0800 Subject: [PATCH] test: qualify execution clock regression time types --- crates/fidc-core/src/broker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fidc-core/src/broker.rs b/crates/fidc-core/src/broker.rs index 4beaa87..73418c2 100644 --- a/crates/fidc-core/src/broker.rs +++ b/crates/fidc-core/src/broker.rs @@ -11614,7 +11614,7 @@ mod tests { #[test] fn later_execution_clocks_do_not_replenish_the_same_observed_volume() { - let date = NaiveDate::from_ymd_opt(2025,1,2).unwrap(); + let date = chrono::NaiveDate::from_ymd_opt(2025,1,2).unwrap(); let broker = BrokerSimulator::new_with_execution_price( ChinaAShareCostModel::default(), ChinaEquityRuleHooks, PriceField::Last, ).with_volume_limit(true).with_volume_percent(0.25).with_liquidity_limit(false); @@ -11633,7 +11633,7 @@ mod tests { assert_eq!(first.legs[0].execution_timestamp,Some(clock)); assert_eq!(first.liquidity_consumption[0].timestamp,quotes[0].timestamp); ledger.apply_liquidity_consumption(&first.liquidity_consumption); - let later = clock + Duration::seconds(1); + let later = clock + chrono::Duration::seconds(1); let second = broker.select_execution_fill_with_ledger( &snapshot.symbol,&snapshot,"es,OrderSide::Sell,MatchingType::MinuteLast, Some(later),Some(later),100,100,100,100,true,None,None,None,&ledger,None,