From 8dfdac98e53e55ff1cadf3505463805c72edd570 Mon Sep 17 00:00:00 2001 From: Andrea V <1577639+karimodm@users.noreply.github.com> Date: Thu, 21 Sep 2023 11:28:21 +0200 Subject: [PATCH] Relax mempool memrelease test margin --- pkg/protocol/engine/mempool/tests/tests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/protocol/engine/mempool/tests/tests.go b/pkg/protocol/engine/mempool/tests/tests.go index 93d8e1d09..586cd02b8 100644 --- a/pkg/protocol/engine/mempool/tests/tests.go +++ b/pkg/protocol/engine/mempool/tests/tests.go @@ -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 {