Skip to content

Commit c1ee079

Browse files
committed
disable bootstrap for FixtureHistory tests
The test assertions expect the db to be empty. Previously, bootstrap was disabled by default, but now we've enabled it by default. Therefore we need to disable bootstrap explicitly in these tests.
1 parent 060202c commit c1ee079

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/test/java/org/fairdatapoint/database/db/repository/bootstrap/FixtureHistoryRepositoryTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.springframework.beans.factory.annotation.Autowired;
3131
import org.springframework.boot.test.autoconfigure.orm.jpa.AutoConfigureTestEntityManager;
3232
import org.springframework.dao.DataIntegrityViolationException;
33+
import org.springframework.test.context.TestPropertySource;
3334

3435
import java.util.Optional;
3536

@@ -38,6 +39,7 @@
3839

3940
@AutoConfigureTestEntityManager
4041
@Transactional
42+
@TestPropertySource(properties = "bootstrap.enabled=false")
4143
public class FixtureHistoryRepositoryTests extends BaseIntegrationTest {
4244
@Autowired
4345
FixtureHistoryRepository repository;

0 commit comments

Comments
 (0)