Skip to content

Commit

Permalink
Merge pull request #356 from iotaledger/fix/memrelease-test
Browse files Browse the repository at this point in the history
Relax Mempool Memrelease test margin
  • Loading branch information
karimodm authored Sep 21, 2023
2 parents 32eedbe + 8dfdac9 commit b920858
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 b920858

Please sign in to comment.