Compare commits

..

2 Commits

Author SHA1 Message Date
Aleksei Ilin 528e0a8268
Merge 28fb497ab8 into 1c789726cf 2025-01-20 19:46:10 +00:00
Aleksei Ilin 28fb497ab8
set: Add system test for Size property 2025-01-20 20:45:58 +01:00
1 changed files with 5 additions and 5 deletions

View File

@ -4118,12 +4118,12 @@ func TestSetSizeConcat(t *testing.T) {
}) })
set := &nftables.Set{ set := &nftables.Set{
Name: "test-set", Name: "test-set",
Table: filter, Table: filter,
KeyType: nftables.MustConcatSetType(nftables.TypeIP6Addr, nftables.TypeInetService, nftables.TypeIP6Addr), KeyType: nftables.MustConcatSetType(nftables.TypeIP6Addr, nftables.TypeInetService, nftables.TypeIP6Addr),
Dynamic: true, Dynamic: true,
Concatenation: true, Concatenation: true,
Size: 200, Size: 200,
} }
if err := c.AddSet(set, nil); err != nil { if err := c.AddSet(set, nil); err != nil {