more trying to save memory in tests

This commit is contained in:
Grahame Grieve 2023-03-29 23:02:42 +11:00
parent 4f8a8108a4
commit 69f31442bc
2 changed files with 10 additions and 1 deletions

View File

@ -138,6 +138,10 @@ public class ValidationTests implements IEvaluationContext, IValidatorResourceFe
@AfterAll
public void cleanup() {
ve = null;
vCurr = null;
igLoader = null;
manifest = null;
System.gc();
}
@SuppressWarnings("deprecation")
@ -185,6 +189,11 @@ public class ValidationTests implements IEvaluationContext, IValidatorResourceFe
// }
// TestingUtilities.fcontexts.put(version, vCurr.getContext());
if (content.has("close-up")) {
cleanup();
Assertions.assertTrue(true);
return;
}
if (content.has("use-test") && !content.get("use-test").getAsBoolean())
return;

View File

@ -19,7 +19,7 @@
<properties>
<hapi_fhir_version>6.2.1</hapi_fhir_version>
<validator_test_case_version>1.2.25</validator_test_case_version>
<validator_test_case_version>1.2.26-SNAPSHOT</validator_test_case_version>
<junit_jupiter_version>5.7.1</junit_jupiter_version>
<junit_platform_launcher_version>1.8.2</junit_platform_launcher_version>
<maven_surefire_version>3.0.0-M5</maven_surefire_version>