Skip to content

Commit

Permalink
Relax mempool memrelease test margin
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Sep 21, 2023
1 parent 376df37 commit 8dfdac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/protocol/engine/mempool/tests/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ func TestMemoryRelease(t *testing.T, tf *TestFramework) {

fmt.Println(memStatsEnd.HeapObjects, memStatsStart.HeapObjects)

require.Less(t, float64(memStatsEnd.HeapObjects), 1.1*float64(memStatsStart.HeapObjects), "the objects in the heap should not grow by more than 10%")
require.Less(t, float64(memStatsEnd.HeapObjects), 1.15*float64(memStatsStart.HeapObjects), "the objects in the heap should not grow by more than 15%")
}

func memStats() *runtime.MemStats {
Expand Down

0 comments on commit 8dfdac9

Please sign in to comment.