mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
@@ -195,10 +195,10 @@ describe('memory usage', function()
|
|||||||
local after = monitor_memory_usage(pid)
|
local after = monitor_memory_usage(pid)
|
||||||
source('bwipe!')
|
source('bwipe!')
|
||||||
poke_eventloop()
|
poke_eventloop()
|
||||||
-- Allow for an increase of 5% in memory usage, which accommodates minor fluctuation,
|
-- Allow for an increase of 10% in memory usage, which accommodates minor fluctuation,
|
||||||
-- but is small enough that if memory were not released (prior to PR #14884), the test
|
-- but is small enough that if memory were not released (prior to PR #14884), the test
|
||||||
-- would fail.
|
-- would fail.
|
||||||
local upper = before.last * 1.05
|
local upper = before.last * 1.10
|
||||||
check_result({before=before, after=after}, pcall(ok, after.last <= upper))
|
check_result({before=before, after=after}, pcall(ok, after.last <= upper))
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user