Skip to content

Commit

Permalink
Add test for checking rule TableFamily
Browse files Browse the repository at this point in the history
  • Loading branch information
patryk4815 committed Dec 11, 2024
1 parent f16c6a6 commit 6904cca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ func TestMonitor(t *testing.T) {
*gotChain.Hooknum != *postrouting.Hooknum {
t.Fatal("no want chain", gotChain.Type, gotChain.Name, gotChain.Hooknum)
}
if gotRule.Table.Family != nat.Family {
t.Fatal("rule wrong family", gotRule.Table.Family, gotRule.Table.Name)
}
if len(gotRule.Exprs) != len(rule.Exprs) {
t.Fatal("no want rule")
}
Expand Down

0 comments on commit 6904cca

Please sign in to comment.