mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 8.1.1027: memory usage test sometimes fails
Problem: Memory usage test sometimes fails. Solution: Use 80% of before.last as the lower limit. (Christian Brabandt)
This commit is contained in:
@@ -137,7 +137,9 @@ func Test_memory_func_capture_lvars()
|
||||
let last = s:monitor_memory_usage(vim.pid).last
|
||||
endfor
|
||||
|
||||
call assert_inrange(before, after.max + (after.last - before), last)
|
||||
" The usage may be a bit less than the last value
|
||||
let lower = before * 8 / 10
|
||||
call assert_inrange(lower, after.max + (after.last - before), last)
|
||||
|
||||
call vim.stop()
|
||||
call delete(testfile)
|
||||
|
Reference in New Issue
Block a user