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): don't fail the import test on a Windows cleanup race

leepokai7508f4cb11aa
diff --git a/host/src/import/tests.rs b/host/src/import/tests.rs
index 88396050..c4f89184 100644
--- a/host/src/import/tests.rs
+++ b/host/src/import/tests.rs
@@ -184,7 +184,8 @@ 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.
+ // Tasks the hub spawned can still hold the database open, which Windows won't delete;
+ // the folder is in the temp dir, so a failed cleanup doesn't fail the test.
drop(hub);
- std::fs::remove_dir_all(dir).unwrap();
+ let _ = std::fs::remove_dir_all(dir);
}