fix(tests): add missing prefix field to Request::Query call sites
ad4e538fixed the chroot link error, surfacing the next failure: `cargo test --features full` in check() couldn't compile integration tests because Request::Query gained an optional `prefix` field in 3.4.5 (commitbfbce42) and I missed three constructors under crates/owlry/tests/. Unit tests under src/ were already updated. Locally these tests compiled before because `cargo build --features full` doesn't run them — only `cargo test` does, and I'd been running `--lib` only. The chroot's PKGBUILD `check()` runs the full suite. 352 lib + 27 integration tests now green with --features full.
This commit is contained in:
@@ -5,6 +5,7 @@ fn test_query_request_roundtrip() {
|
||||
let req = Request::Query {
|
||||
text: "fire".into(),
|
||||
modes: Some(vec!["app".into(), "cmd".into()]),
|
||||
prefix: None,
|
||||
};
|
||||
let json = serde_json::to_string(&req).unwrap();
|
||||
let parsed: Request = serde_json::from_str(&json).unwrap();
|
||||
@@ -16,6 +17,7 @@ fn test_query_request_without_modes() {
|
||||
let req = Request::Query {
|
||||
text: "fire".into(),
|
||||
modes: None,
|
||||
prefix: None,
|
||||
};
|
||||
let json = serde_json::to_string(&req).unwrap();
|
||||
assert!(!json.contains("modes"));
|
||||
|
||||
@@ -92,6 +92,7 @@ fn test_server_handles_query_request() {
|
||||
let req = Request::Query {
|
||||
text: "nonexistent_query_xyz".into(),
|
||||
modes: None,
|
||||
prefix: None,
|
||||
};
|
||||
let resp = roundtrip(&mut stream, &req);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user