Skip to content

Commit

Permalink
Add tests verifying existence of some interfaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
panhania committed Oct 12, 2023
1 parent 0929371 commit 1a39af0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/rrg/src/action/list_interfaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,12 @@ mod tests {
session.replies().any(|item: &Item| is_loopback(&item.iface))
}
}

#[test]
fn handle_some_interface() {
let mut session = crate::session::FakeSession::new();
assert!(handle(&mut session, ()).is_ok());

assert!(session.reply_count() > 0);
}
}

0 comments on commit 1a39af0

Please sign in to comment.