Fix test running under valgrind

This commit is contained in:
Roger A. Light 2023-06-13 11:47:32 +01:00
parent 6113eac95a
commit 41db41761d

View File

@ -50,7 +50,10 @@ def do_test(port):
for s in socks:
s.close()
limit = 25000000
if os.environ.get('MOSQ_USE_VALGRIND') is None:
limit = 25000000
else:
limit = 120000000
if mem > limit:
raise mosq_test.TestError(f"Process memory {mem} greater than limit of {limit}")