huskies: merge 517_story_remove_filesystem_shadow_fallback_paths_from_lifecycle_rs_finish_the_migration_to_crdt_only
This commit is contained in:
@@ -139,7 +139,10 @@ mod tests {
|
||||
|
||||
let current = root.join(".huskies/work/2_current");
|
||||
fs::create_dir_all(¤t).unwrap();
|
||||
fs::write(current.join("60_story_cleanup.md"), "test").unwrap();
|
||||
let story_content = "test";
|
||||
fs::write(current.join("60_story_cleanup.md"), story_content).unwrap();
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_content("60_story_cleanup", story_content);
|
||||
|
||||
let pool = AgentPool::new_test(3001);
|
||||
pool.inject_test_agent("60_story_cleanup", "coder-1", AgentStatus::Completed);
|
||||
@@ -159,9 +162,10 @@ mod tests {
|
||||
);
|
||||
assert_eq!(remaining[0].story_id, "61_story_other");
|
||||
|
||||
assert!(
|
||||
root.join(".huskies/work/5_done/60_story_cleanup.md")
|
||||
.exists()
|
||||
);
|
||||
// The lifecycle function updates the content store (not the filesystem),
|
||||
// so verify the move via the DB.
|
||||
let content = crate::db::read_content("60_story_cleanup")
|
||||
.expect("60_story_cleanup should be in content store after move to done");
|
||||
assert_eq!(content, "test", "content should be preserved after move");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user