Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

test(server): unwrap parse_args_from in the auto_port tests (main red after #1452 + #1487)

xerj-orgf223b86a703d
diff --git a/engine/crates/xerj-server/src/main.rs b/engine/crates/xerj-server/src/main.rs
index dea994539..51e85ff8c 100644
--- a/engine/crates/xerj-server/src/main.rs
+++ b/engine/crates/xerj-server/src/main.rs
@@ -3677,11 +3677,11 @@ mod auto_port_tests {
#[test]
fn auto_port_is_off_unless_asked_for() {
// No config file, no flag: a taken port must stay fatal (#465).
- let args = parse_args_from(["--insecure".to_string()].into_iter());
+ let args = parse_args_from(["--insecure".to_string()].into_iter()).unwrap();
if std::env::var_os("XERJ_AUTO_PORT").is_none() {
assert!(!load_config(&args).unwrap().server.auto_port);
}
- let args = parse_args_from(["--auto-port".to_string()].into_iter());
+ let args = parse_args_from(["--auto-port".to_string()].into_iter()).unwrap();
assert!(load_config(&args).unwrap().server.auto_port);
}