mind-body: the once-per-window test frees her unit and moves the clock, so only last_sleep spends the window
This commit is contained in:
parent
9a0dfdd0e1
commit
2291e90355
1 changed files with 2 additions and 0 deletions
|
|
@ -1499,6 +1499,8 @@ fn a_listed_idle_mind_sleeps_once_per_window_and_a_missed_night_is_not_made_up()
|
|||
end_launched(&rig, ANN);
|
||||
// Her unit is gone as well, so she is idle and only her last Sleep run says the window is spent.
|
||||
rig.launcher.kill_as(&Slug("ann".into()), RunTurn::Sleep);
|
||||
rig.advance(60);
|
||||
rig.store.save(&HeartbeatState { last_beat_at: rig.now(), handled_mentions: vec![] }).unwrap();
|
||||
assert_eq!(rig.poll(), Outcome::Polled { launched: vec![] }, "one night per window, whatever became of it");
|
||||
assert_eq!(started_turns(&rig).len(), 1);
|
||||
// The next window opens a day later and she sleeps again.
|
||||
|
|
|
|||
Loading…
Reference in a new issue