From 91290d60906a72dd0e1424c0bc912fd7b42dd7c0 Mon Sep 17 00:00:00 2001 From: qmuntal Date: Fri, 30 Aug 2024 14:51:33 +0200 Subject: [PATCH] increase TestReadAccessorAllocs runs --- modeler/read_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modeler/read_test.go b/modeler/read_test.go index ae4e649..1668f3b 100644 --- a/modeler/read_test.go +++ b/modeler/read_test.go @@ -203,7 +203,7 @@ func TestReadAccessorAllocs(t *testing.T) { } testFunc := func(t *testing.T, buf []byte, want float32) { - allocs := testing.AllocsPerRun(10, func() { + allocs := testing.AllocsPerRun(50, func() { modeler.ReadAccessor(doc, acr, buf) }) if allocs != float64(want) { @@ -216,10 +216,10 @@ func TestReadAccessorAllocs(t *testing.T) { }) t.Run("2", func(t *testing.T) { buf := make([]byte, 24) - testFunc(t, buf, 3) - testFunc(t, buf, 3) - testFunc(t, buf, 3) - testFunc(t, buf, 3) + testFunc(t, buf, 2) + testFunc(t, buf, 2) + testFunc(t, buf, 2) + testFunc(t, buf, 2) }) t.Run("4", func(t *testing.T) { buf := make([]byte, 48)