Skip to content

Commit

Permalink
fix 2 more tests to identify correct problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Nov 21, 2024
1 parent ef59564 commit d422574
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public void testBSTSBasedOmex(String testCaseFilename) throws Exception {
TestRecorder cliRecorder = new TestRecorder();
ExecuteImpl.singleMode(omexFile.toFile(), outdirPath.toFile(), cliRecorder);
List<TraceEvent> errorEvents = Tracer.getErrors();
String errorMessages = (errorEvents.isEmpty()) ? "" : errorEvents.get(0).message;
String errorMessages = (errorEvents.isEmpty()) ? "" : errorEvents.get(0).message + " " + errorEvents.get(0).exception;
assertTrue(errorEvents.isEmpty(), "failure: '" + errorMessages + "'");
if (knownFault != null) {
fail("Expected error " + knownFault.name() + " but found no error");
Expand Down Expand Up @@ -306,7 +306,7 @@ private FAULT determineFault(Throwable caughtException, List<TraceEvent> errorEv
if (subException instanceof ArrayIndexOutOfBoundsException){
return FAULT.ARRAY_INDEX_OUT_OF_BOUNDS;
}
} else if (errorMessage.contains("inconsistent unit system in SBML model") ||
} else if (errorMessage.contains("nconsistent unit system in SBML model") ||
errorMessage.contains("ust be of type")){
return FAULT.SEDML_ERRONEOUS_UNIT_SYSTEM;
} else if (errorMessage.contains("There are no SED-MLs in the archive to execute")) {
Expand Down

0 comments on commit d422574

Please sign in to comment.