From b45a898951bb39ab182dcdb4be50e3bf6ed9e09a Mon Sep 17 00:00:00 2001 From: connoratrug Date: Fri, 20 Dec 2024 16:17:40 +0100 Subject: [PATCH] drop if exsists test schema --- .../java/org/molgenis/emx2/datamodels/TestProfileLoader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/molgenis-emx2-datamodels/src/test/java/org/molgenis/emx2/datamodels/TestProfileLoader.java b/backend/molgenis-emx2-datamodels/src/test/java/org/molgenis/emx2/datamodels/TestProfileLoader.java index bed2af2b96..1bdb92bfac 100644 --- a/backend/molgenis-emx2-datamodels/src/test/java/org/molgenis/emx2/datamodels/TestProfileLoader.java +++ b/backend/molgenis-emx2-datamodels/src/test/java/org/molgenis/emx2/datamodels/TestProfileLoader.java @@ -59,6 +59,7 @@ void testProfileLoader() { @Test void testProfileLoaderWithError() { + database.dropSchemaIfExists(TEST_PROFILE); Schema testProfileSchema = database.createSchema(TEST_PROFILE); var task = new ImportProfileTask(testProfileSchema, "TestProfileWithError.yaml", true); assertThrows(MolgenisException.class, task::run);