aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/memory_usage_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/memory_usage_spec.lua')
-rw-r--r--test/functional/legacy/memory_usage_spec.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/legacy/memory_usage_spec.lua b/test/functional/legacy/memory_usage_spec.lua
index 14a7f2dbdd..2b4f8ea15e 100644
--- a/test/functional/legacy/memory_usage_spec.lua
+++ b/test/functional/legacy/memory_usage_spec.lua
@@ -143,8 +143,10 @@ describe('memory usage', function()
feed_command('so '..fname)
end
local last = monitor_memory_usage(pid)
+ -- The usage may be a bit less than the last value
+ local lower = before.last * 8 / 10
check_result({before=before, after=after, last=last},
- pcall(ok, before.last < last.last))
+ pcall(ok, lower < last.last))
check_result({before=before, after=after, last=last},
pcall(ok, last.last < after.max + (after.last - before.last)))
end)