Description: increase performance test tolerance to prevent flaky failures Author: Christoph Martin Origin: upstream, https://github.com/elliotchance/orderedmap/pull/64 Bug: https://github.com/elliotchance/orderedmap/issues/61 Last-Update: 2026-05-07 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/orderedmap_test.go +++ b/orderedmap_test.go @@ -76,7 +76,7 @@ func TestGet(t *testing.T) { assert.InDelta(t, res1.NsPerOp(), res4.NsPerOp(), - 0.5*float64(res1.NsPerOp())) + float64(res1.NsPerOp())) }) } @@ -167,7 +167,7 @@ func TestLen(t *testing.T) { assert.InDelta(t, res1.NsPerOp(), res4.NsPerOp(), - 0.5*float64(res1.NsPerOp())) + float64(res1.NsPerOp())) }) } @@ -353,7 +353,7 @@ func TestGetElement(t *testing.T) { assert.InDelta(t, res1.NsPerOp(), res4.NsPerOp(), - 0.5*float64(res1.NsPerOp())) + float64(res1.NsPerOp())) }) }