huskies: merge 961
This commit is contained in:
@@ -102,7 +102,7 @@ stage = "coder"
|
||||
let story_content = "---\nname: Story 3\n---\n";
|
||||
std::fs::write(backlog.join("story-3.md"), story_content).unwrap();
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_content("story-3", story_content);
|
||||
crate::db::write_content(crate::db::ContentKey::Story("story-3"), story_content);
|
||||
|
||||
let pool = AgentPool::new_test(3001);
|
||||
pool.inject_test_agent("story-1", "coder-1", AgentStatus::Running);
|
||||
@@ -124,7 +124,7 @@ stage = "coder"
|
||||
|
||||
// The lifecycle function updates the content store (not the filesystem),
|
||||
// so verify the move via the DB.
|
||||
let content = crate::db::read_content("story-3")
|
||||
let content = crate::db::read_content(crate::db::ContentKey::Story("story-3"))
|
||||
.expect("story-3 should be in content store after move to current");
|
||||
assert!(
|
||||
content.contains("name: Story 3"),
|
||||
@@ -280,7 +280,10 @@ stage = "coder"
|
||||
// left a stale entry for "368_story_test" in the global CRDT.
|
||||
std::fs::write(current.join("368_story_test.md"), story_content).unwrap();
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_content("368_story_test", story_content);
|
||||
crate::db::write_content(
|
||||
crate::db::ContentKey::Story("368_story_test"),
|
||||
story_content,
|
||||
);
|
||||
// Story 929: agent pin comes from the CRDT register, not YAML. Seed it.
|
||||
crate::crdt_state::init_for_test();
|
||||
crate::crdt_state::write_item_str(
|
||||
|
||||
Reference in New Issue
Block a user