Skip to content

Commit

Permalink
Flush rules in test anchor before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed May 29, 2024
1 parent 6c588c6 commit b630098
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/filter_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fn before_each() {
.unwrap()
.try_add_anchor(ANCHOR_NAME, pfctl::AnchorKind::Filter)
.unwrap();
pfcli::flush_rules(ANCHOR_NAME, pfcli::FlushOptions::Rules).unwrap();
}

fn after_each() {
Expand Down

0 comments on commit b630098

Please sign in to comment.