From 7e4fa2aba80f0f03469bee8a7508af71bad41c24 Mon Sep 17 00:00:00 2001 From: Hasan Mahmood Date: Fri, 20 Dec 2024 14:01:18 -0600 Subject: [PATCH] Test --- pkg/ebpf/maps/generic_map_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/ebpf/maps/generic_map_test.go b/pkg/ebpf/maps/generic_map_test.go index 52b568c367d66..837932b518cce 100644 --- a/pkg/ebpf/maps/generic_map_test.go +++ b/pkg/ebpf/maps/generic_map_test.go @@ -588,9 +588,13 @@ func TestValidateMapKeyValueSize(t *testing.T) { assert.Error(t, err) assert.Nil(t, gm) - gm2, err := Map[uint64, uint64](m) + gm2, err := Map[uint64, uint32](m) + assert.Error(t, err) + assert.Nil(t, gm2) + + gm3, err := Map[uint64, uint64](m) assert.NoError(t, err) - assert.NotNil(t, gm2) + assert.NotNil(t, gm3) } func TestGenericHashMapCanUseBatchAPI(t *testing.T) {