diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-13 20:02:58 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-14 11:54:36 -0400 |
commit | 9e4c1fa073959ed162d2671a82771595540eedad (patch) | |
tree | c2f39352ee4d063a2fea8d7d09393e5715995b9a | |
parent | 519848f64eda3aacb6d2ceac63c3b52c9ff0c59b (diff) | |
download | rneovim-9e4c1fa073959ed162d2671a82771595540eedad.tar.gz rneovim-9e4c1fa073959ed162d2671a82771595540eedad.tar.bz2 rneovim-9e4c1fa073959ed162d2671a82771595540eedad.zip |
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
-rw-r--r-- | test/functional/legacy/memory_usage_spec.lua | 4 |
1 files 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}, |