diff --git a/crates/weft-appd/src/main.rs b/crates/weft-appd/src/main.rs index f869290..fb4b2a7 100644 --- a/crates/weft-appd/src/main.rs +++ b/crates/weft-appd/src/main.rs @@ -497,6 +497,13 @@ mod tests { assert!(matches!(reg.state(42), AppStateKind::NotFound)); } + #[tokio::test] + async fn dispatch_query_installed_returns_installed_apps() { + let reg = make_registry(); + let resp = dispatch(Request::QueryInstalledApps, ®).await; + assert!(matches!(resp, Response::InstalledApps { .. })); + } + #[test] fn scan_installed_apps_finds_valid_packages() { use std::fs; diff --git a/scripts/wsl-test.sh b/scripts/wsl-test.sh index 77201e6..6481129 100644 --- a/scripts/wsl-test.sh +++ b/scripts/wsl-test.sh @@ -32,7 +32,7 @@ cargo test -p weft-appd 2>&1 echo "" echo "==> cargo test -p weft-runtime" -cargo test -p weft-runtime 2>&1 +cargo test -p weft-runtime -- --test-threads=1 2>&1 echo "" echo "==> cargo test -p weft-pack"