From 9e4c1fa073959ed162d2671a82771595540eedad Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 13 Mar 2021 20:02:58 -0500 Subject: [PATCH] vim-patch:8.2.2601: memory usage test often fails on FreeBSD Problem: Memory usage test often fails on FreeBSD. Solution: Increase multiplier for upper limit. https://github.com/vim/vim/commit/6bce5856b5fc4d4eb8f75298382251ecda659ac3 --- test/functional/legacy/memory_usage_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/legacy/memory_usage_spec.lua b/test/functional/legacy/memory_usage_spec.lua index 5f7bbd887f..97ac96804e 100644 --- a/test/functional/legacy/memory_usage_spec.lua +++ b/test/functional/legacy/memory_usage_spec.lua @@ -157,8 +157,8 @@ describe('memory usage', function() -- The usage may be a bit less than the last value, use 80%. -- Allow for 20% tolerance at the upper limit. That's very permissive, but -- otherwise the test fails sometimes. On Sourcehut CI with FreeBSD we need to - -- be even more permissive. - local upper_multiplier = uname() == 'freebsd' and 15 or 12 + -- be even much more permissive. + local upper_multiplier = uname() == 'freebsd' and 19 or 12 local lower = before.last * 8 / 10 local upper = load_adjust((after.max + (after.last - before.last)) * upper_multiplier / 10) check_result({before=before, after=after, last=last},