fix: add parent field to NodeView test helper in hivectl
dag_progress.rs's test-only node() constructor was missing the new parent field added to NodeView in hive-sh4re. Add parent: None to silence the missing-field compile error.
This commit is contained in:
parent
ffb2d78a56
commit
538b56d2e4
1 changed files with 1 additions and 0 deletions
|
|
@ -323,6 +323,7 @@ mod tests {
|
||||||
fn node(id: u64, agent: &str, kind: &str, state: State) -> NodeView {
|
fn node(id: u64, agent: &str, kind: &str, state: State) -> NodeView {
|
||||||
NodeView {
|
NodeView {
|
||||||
id,
|
id,
|
||||||
|
parent: None,
|
||||||
agent: agent.to_owned(),
|
agent: agent.to_owned(),
|
||||||
kind: kind.to_owned(),
|
kind: kind.to_owned(),
|
||||||
deps: if id == 0 { vec![] } else { vec![id - 1] },
|
deps: if id == 0 { vec![] } else { vec![id - 1] },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue