mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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%.
ba64ba0935
This commit is contained in:
parent
6175d974c2
commit
7acdc9da1d
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user