Skip to content

Commit

Permalink
Do not test LRUHash with entries (#24600)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjulianm authored Apr 11, 2024
1 parent 222f8bb commit e2f3e65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/collector/corechecks/ebpf/probe/ebpfcheck/probe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ func TestHashMapNumberOfEntries(t *testing.T) {
for _, mapType := range mapTypes {
t.Run(mapType.String(), func(t *testing.T) {
t.Run("EmptyMap", func(t *testing.T) { testWithEntryCount(t, mapType, 0) })
t.Run("HalfFullMap", func(t *testing.T) { testWithEntryCount(t, mapType, maxEntries/2) })

if mapType != ebpf.LRUHash { // LRUHash starts vacating entries even when it's not 100% full, cannot test this case
if mapType != ebpf.LRUHash { // LRUHash starts vacating entries even when it's not 100% full, cannot test this case as it's too flakey
t.Run("HalfFullMap", func(t *testing.T) { testWithEntryCount(t, mapType, maxEntries/2) })
t.Run("FullMap", func(t *testing.T) { testWithEntryCount(t, mapType, maxEntries) })
}
})
Expand Down

0 comments on commit e2f3e65

Please sign in to comment.