deploy the closure the swarm declares, read no forge head, drop the update badge
This commit is contained in:
parent
279428a66f
commit
47c2acb640
1 changed files with 647 additions and 2001 deletions
|
|
@ -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"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue