closed flow also queues a closed todo on each agent that held one, after the clear
This commit is contained in:
parent
fb8aa23e66
commit
0a1e4db0f4
4 changed files with 99 additions and 24 deletions
|
|
@ -137,9 +137,18 @@ mod tests {
|
|||
&flows,
|
||||
is_agent,
|
||||
);
|
||||
// Per agent the clear comes before the closed todo that its prefix would take.
|
||||
let mut got = agents(&closed);
|
||||
got.sort_unstable_by_key(|(a, _)| *a);
|
||||
assert_eq!(got, [("atlas", Op::Clear), ("iris", Op::Clear)]);
|
||||
got.sort_by_key(|(a, _)| *a);
|
||||
assert_eq!(
|
||||
got,
|
||||
[
|
||||
("atlas", Op::Clear),
|
||||
("atlas", Op::Upsert),
|
||||
("iris", Op::Clear),
|
||||
("iris", Op::Upsert)
|
||||
]
|
||||
);
|
||||
assert!(closed.next.holders.is_empty());
|
||||
// A close leaves the assignee snapshot as the last assign set it.
|
||||
assert_eq!(closed.next.assignees, three.next.assignees);
|
||||
|
|
|
|||
Loading…
Reference in a new issue