Skip to content

Commit 76dd028

Browse files
RoyLinRoyLin
authored andcommitted
fix: gate AHP idle test behind ahp feature
The test imports from a3s_code_core::ahp which only exists when the ahp feature is enabled. Gate the entire test file with #![cfg(feature = "ahp")] to prevent compilation errors when running tests without the ahp feature.
1 parent 85f95bc commit 76dd028

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

core/tests/test_ahp_idle_with_llm.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
//!
33
//! Run with:
44
//! ```bash
5-
//! cd crates/code/core
6-
//!
7-
//! # Set environment variables for minmax model (from .a3s/config.hcl)
8-
//! export MINIMAX_API_KEY="sk-ZaH1YnkiGmcBt8qxKWfsBV5w9aInp4QuDUeq1HEIOAzEg5cT"
9-
//! export MINIMAX_BASE_URL="http://35.220.164.252:3888/v1/"
10-
//! export MINIMAX_MODEL="MiniMax-M2.7-highspeed"
11-
//!
12-
//! # Run tests (must use --ignored to run)
13-
//! cargo test --test test_ahp_idle_with_llm -- --ignored --test-threads=1 --nocapture
5+
//! cd crates/code
6+
//! cargo test -p a3s-code-core --features ahp --test test_ahp_idle_with_llm -- --ignored --test-threads=1 --nocapture
147
//! ```
158
9+
#![cfg(feature = "ahp")]
10+
1611
use a3s_code_core::ahp::{EventContext, IdleDecision, IdleEvent, MemorySummary, SessionStats};
1712

1813
/// Create LLM client from environment variables

0 commit comments

Comments
 (0)