From 5baee79ee2960724248795be9574461ebb729b1b Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Fri, 7 Feb 2020 09:03:25 +0100 Subject: [PATCH] test: JVM_RESERVED_CODE_CACHE_SIZE env Signed-off-by: Yoan Blanc --- tests/test_image.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_image.py b/tests/test_image.py index 9e71134..9a64e27 100644 --- a/tests/test_image.py +++ b/tests/test_image.py @@ -9,6 +9,7 @@ def test_jvm_args(docker_cli, image, run_user): environment = { 'JVM_MINIMUM_MEMORY': '383m', 'JVM_MAXIMUM_MEMORY': '2047m', + 'JVM_RESERVED_CODE_CACHE_SIZE': '384m', 'JVM_SUPPORT_RECOMMENDED_ARGS': '-verbose:gc', } container = run_image(docker_cli, image, user=run_user, environment=environment) @@ -19,6 +20,7 @@ def test_jvm_args(docker_cli, image, run_user): assert f'-Xms{environment.get("JVM_MINIMUM_MEMORY")}' in jvm assert f'-Xmx{environment.get("JVM_MAXIMUM_MEMORY")}' in jvm + assert f'-XX:ReservedCodeCacheSize={environment.get("JVM_RESERVED_CODE_CACHE_SIZE")}' in jvm assert environment.get('JVM_SUPPORT_RECOMMENDED_ARGS') in jvm