diff options
author | erw7 <erw7.github@gmail.com> | 2019-09-06 00:28:58 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2020-05-07 16:48:08 +0900 |
commit | 7acdc9da1dec4306818302a3d2518fc2caf02963 (patch) | |
tree | 82326e765d9b8bae565214588b0555f02c450544 | |
parent | 6175d974c26e57cec1b83079681f9bfb5adc5683 (diff) | |
download | rneovim-7acdc9da1dec4306818302a3d2518fc2caf02963.tar.gz rneovim-7acdc9da1dec4306818302a3d2518fc2caf02963.tar.bz2 rneovim-7acdc9da1dec4306818302a3d2518fc2caf02963.zip |
vim-patch:8.1.1033: memory usage test may still fail on some systems
Problem: Memory usage test may still fail on some systems. (Elimar
Riesebieter)
Solution: Increase tolerance from 1% to 3%.
https://github.com/vim/vim/commit/ba64ba093520e85d6bed2595960edb693bdb4c51
-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 08caf4449d..e2e5277acb 100644 --- a/test/functional/legacy/memory_usage_spec.lua +++ b/test/functional/legacy/memory_usage_spec.lua @@ -146,9 +146,9 @@ describe('memory usage', function() end local last = monitor_memory_usage(pid) -- The usage may be a bit less than the last value, use 80%. - -- Allow for 1% tolerance at the upper limit. + -- Allow for 3% tolerance at the upper limit. local lower = before.last * 8 / 10 - local upper = (after.max + (after.last - before.last)) * 101 / 100 + local upper = (after.max + (after.last - before.last)) * 103 / 100 check_result({before=before, after=after, last=last}, pcall(ok, lower < last.last)) check_result({before=before, after=after, last=last}, |