Skip to content

Commit

Permalink
TRUNK-6028 tests do not need core data because they insert their own
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Oct 8, 2022
1 parent 1789dc1 commit 91d4b57
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions api/src/test/java/org/openmrs/test/LiquibaseUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ private static void createSchema() {
ChangeLogVersionFinder changeLogVersionFinder = new ChangeLogVersionFinder();

String liquibaseSchemaFileName = changeLogVersionFinder.getLatestSchemaSnapshotFilename().get();
String liquibaseCoreDataFileName = changeLogVersionFinder.getLatestCoreDataSnapshotFilename().get();

log.info("Executing Liquibase file "+ liquibaseSchemaFileName);

Expand All @@ -50,19 +49,7 @@ private static void createSchema() {
}
catch(Exception ex) {
log.error("Failed to run the liquibase schema file", ex);
}

log.info("executing Liquibase file " + liquibaseCoreDataFileName);

try {
DatabaseUpdater.executeChangelog(liquibaseCoreDataFileName, new PrintingChangeSetExecutorCallback("OpenMRS core data file"));
}
catch(Exception ex) {
log.error("Failed to run the liquibase core data file", ex);
}

log.info("Created database tables and added core data");

}

log.info("Now updating the database to the latest version");

Expand Down

0 comments on commit 91d4b57

Please sign in to comment.