diff --git a/src/integration-test/java/org/openlmis/template/AuditLogInitializerIntegrationTest.java b/src/integration-test/java/org/openlmis/template/AuditLogInitializerIntegrationTest.java index 7479c5b..e7f908e 100644 --- a/src/integration-test/java/org/openlmis/template/AuditLogInitializerIntegrationTest.java +++ b/src/integration-test/java/org/openlmis/template/AuditLogInitializerIntegrationTest.java @@ -43,7 +43,7 @@ import org.springframework.transaction.annotation.Transactional; @Transactional -@ActiveProfiles({"test", "refresh-db"}) +@ActiveProfiles({"test", "init-audit-log"}) @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) public class AuditLogInitializerIntegrationTest { diff --git a/src/main/java/org/openlmis/template/AuditLogInitializer.java b/src/main/java/org/openlmis/template/AuditLogInitializer.java index d0438b5..3de06fc 100644 --- a/src/main/java/org/openlmis/template/AuditLogInitializer.java +++ b/src/main/java/org/openlmis/template/AuditLogInitializer.java @@ -46,7 +46,7 @@ */ @Component -@Profile("refresh-db") +@Profile("init-audit-log") @Transactional public class AuditLogInitializer implements CommandLineRunner { private static final Logger LOGGER = LoggerFactory.getLogger(AuditLogInitializer.class);