notify flows: GET returns a schema of the events, fields, node kinds and limits
This commit is contained in:
parent
627964f72d
commit
d5802d16a0
5 changed files with 281 additions and 26 deletions
|
|
@ -172,7 +172,10 @@ mod tests {
|
|||
.keys()
|
||||
.copied()
|
||||
.collect();
|
||||
let mut want = swarm_wire::notify_flows::FIELDS.to_vec();
|
||||
let mut want = swarm_wire::notify_flows::FIELDS
|
||||
.iter()
|
||||
.map(|(n, _)| *n)
|
||||
.collect::<Vec<_>>();
|
||||
got.sort_unstable();
|
||||
want.sort_unstable();
|
||||
assert_eq!(got, want, "{event}");
|
||||
|
|
|
|||
Loading…
Reference in a new issue