Skip to content

Commit

Permalink
adapt unload integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
davibe committed Jun 2, 2022
1 parent e2d6efc commit e91564a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/cases/010_load/030_unload/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ fn main() {

let link = dispatcher.attach("eth0", XdpFlags::default()).unwrap();

dispatcher.unload(false).unwrap();
{
let link_owned = dispatcher.forget_link(link);

assert_loaded(true);
dispatcher.unload().unwrap();

dispatcher.detach(link).unwrap();
assert_loaded(true);
};

assert_loaded(false);

Expand All @@ -49,7 +51,7 @@ fn main() {

assert_loaded(true);

dispatcher.unload(true).unwrap();
dispatcher.unload().unwrap();

assert_loaded(false);
}

0 comments on commit e91564a

Please sign in to comment.