Compare commits

..

2 Commits

Author SHA1 Message Date
Aleksei Ilin b5f25d8a7d
Merge a6f09ce254 into 1c789726cf 2025-01-18 18:40:02 +01:00
Aleksei Ilin a6f09ce254
set: Add system test for Size property 2025-01-18 18:38:48 +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 {