Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

test(host): close the hub before removing the import test's folder

leepokai38367b9a527d
diff --git a/host/src/import/tests.rs b/host/src/import/tests.rs
index c160cf96..88396050 100644
--- a/host/src/import/tests.rs
+++ b/host/src/import/tests.rs
@@ -184,5 +184,7 @@ async fn an_import_makes_bots_and_one_group_and_rolls_a_failed_bot_back() {
assert_eq!(lead, research["id"].as_str().unwrap(), "the export's lead leads");
let warnings = done["warnings"].to_string();
assert!(warnings.contains("Couldn't import Ops") && warnings.contains("Again"), "{warnings}");
+ // The hub holds the database open, which Windows won't delete.
+ drop(hub);
std::fs::remove_dir_all(dir).unwrap();
}