From 6e7443109db5770038ecee870b731ebf4ae64870 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Mon, 25 Feb 2019 17:39:21 +0100 Subject: [PATCH] [test][test_docker] Increase a bit more the container memory for the memory-limit test (maybe a py3 requirement?) --- beat/core/test/test_docker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beat/core/test/test_docker.py b/beat/core/test/test_docker.py index 1255ca56..23c53837 100644 --- a/beat/core/test/test_docker.py +++ b/beat/core/test/test_docker.py @@ -269,7 +269,7 @@ class AsyncWithEnvironmentTest(unittest.TestCase): cmd = ['python', '-c', '; '.join([ "print('Before')", "import sys; sys.stdout.flush()", - "d = '0' * (20 * 1024 * 1024)", + "d = '0' * (40 * 1024 * 1024)", "import time; time.sleep(5)", "print('After')", ]) @@ -282,7 +282,7 @@ class AsyncWithEnvironmentTest(unittest.TestCase): # If you start seeing EBUSY (device or resource busy errors) from # docker, then try increasing a bit this value such that it still # triggers the memory allocation error for the array defined above. - self.host.start(container, virtual_memory_in_megabytes=10) + self.host.start(container, virtual_memory_in_megabytes=20) time.sleep(2) -- GitLab