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