huskies: merge 530_story_eliminate_filesystem_markdown_shadows_entirely_crdt_db_is_the_only_story_store
This commit is contained in:
@@ -972,13 +972,13 @@ mod tests {
|
||||
#[tokio::test]
|
||||
async fn handle_schedule_story_not_in_backlog_or_current() {
|
||||
let dir = TempDir::new().unwrap();
|
||||
// Set up directory structure with no story in backlog or current
|
||||
std::fs::create_dir_all(dir.path().join(".huskies/work/1_backlog")).unwrap();
|
||||
std::fs::create_dir_all(dir.path().join(".huskies/work/2_current")).unwrap();
|
||||
// Ensure CRDT content store is initialised so the DB-first lookup works.
|
||||
crate::db::ensure_content_store();
|
||||
// No story written — "9950_story_timer_neg" should not be found.
|
||||
let store = TimerStore::load(dir.path().join("timers.json"));
|
||||
let result = handle_timer_command(
|
||||
TimerCommand::Schedule {
|
||||
story_number_or_id: "421_story_foo".to_string(),
|
||||
story_number_or_id: "9950_story_timer_neg".to_string(),
|
||||
hhmm: "14:30".to_string(),
|
||||
},
|
||||
&store,
|
||||
|
||||
Reference in New Issue
Block a user