Skip to content

Commit

Permalink
Try fixing failing integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
KianKwa committed Nov 27, 2024
1 parent 867088d commit 402476a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ActiveProfiles;
import uk.gov.hmcts.reform.pip.account.management.model.AuditLog;
import uk.gov.hmcts.reform.pip.model.account.Roles;
Expand All @@ -20,6 +21,7 @@
@ActiveProfiles("integration-jpa")
@DataJpaTest
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)
class AuditRepositoryTest {
private static final String USER_ID1 = "123";
private static final String USER_ID2 = "124";
Expand Down

0 comments on commit 402476a

Please sign in to comment.