Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix tests
Signed-off-by: Graham King <[email protected]>
  • Loading branch information
grahamking committed Sep 16, 2025
commit f1947d7b5439ec72f368d2381a4a300e59e9baaf
4 changes: 2 additions & 2 deletions lib/llm/src/entrypoint/input/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ mod integration_tests {
.await
.map_err(|e| anyhow::anyhow!("Failed to create distributed runtime: {}", e))?;

let engine_config = EngineConfig::StaticCore {
engine: crate::engines::make_engine_core(),
let engine_config = EngineConfig::StaticFull {
engine: crate::engines::make_echo_engine(),
model: Box::new(
crate::local_model::LocalModelBuilder::default()
.model_name(Some("test-model".to_string()))
Expand Down
34 changes: 20 additions & 14 deletions lib/runtime/src/system_status_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,21 +444,27 @@ mod integration_tests {

// Prepare test cases
let mut test_cases = vec![];
if custom_health_path.is_none() {
// When using default paths, test the default paths
test_cases.push(("/health", expected_status, expected_body));
} else {
// When using custom paths, default paths should not exist
test_cases.push(("/health", 404, "Route not found"));
test_cases.push((custom_health_path.unwrap(), expected_status, expected_body));
match custom_health_path {
None => {
// When using default paths, test the default paths
test_cases.push(("/health", expected_status, expected_body));
}
Some(chp) => {
// When using custom paths, default paths should not exist
test_cases.push(("/health", 404, "Route not found"));
test_cases.push((chp, expected_status, expected_body));
}
}
if custom_live_path.is_none() {
// When using default paths, test the default paths
test_cases.push(("/live", expected_status, expected_body));
} else {
// When using custom paths, default paths should not exist
test_cases.push(("/live", 404, "Route not found"));
test_cases.push((custom_live_path.unwrap(), expected_status, expected_body));
match custom_live_path {
None => {
// When using default paths, test the default paths
test_cases.push(("/live", expected_status, expected_body));
}
Some(clp) => {
// When using custom paths, default paths should not exist
test_cases.push(("/live", 404, "Route not found"));
test_cases.push((clp, expected_status, expected_body));
}
}
test_cases.push(("/someRandomPathNotFoundHere", 404, "Route not found"));
assert_eq!(test_cases.len(), expected_num_tests);
Expand Down
Loading