Watch
0
0
Fork
You've already forked hyperhive
0

deploy the closure the swarm declares, read no forge head, drop the update badge

This commit is contained in:
atlas 2026-11-01 23:56:40 +01:00 • committed by mara
commit 47c2acb640

View file

@ -1545,3 +1545,18 @@ fn a_first_deploy_is_not_queued_twice_for_one_agent() {
"control: another agent's deploy is independent"
);
}
/// The auto-update pass queues no second rebuild for an agent that has one in
/// flight; another agent's rebuild does not count.
#[test]
fn a_rebuild_is_live_for_its_own_agent_only() {
let q = JobQueue::new(1);
assert!(!q.rebuild_live("alice"), "nothing queued yet");
q.insert_job(|b| templates::rebuild(b, "alice"))
.expect("insert");
assert!(
q.rebuild_live("alice"),
"control: the queued rebuild is seen"
);
assert!(!q.rebuild_live("bob"));
}