Skip to content

Commit fdb53d2

Browse files
committed
This should do the trick. 2
1 parent 0165ec5 commit fdb53d2

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

springqpro-backend/src/test/java/com/springqprobackend/springqpro/integration/OwnershipGraphQLIntegrationTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@
2626

2727
import static org.assertj.core.api.Assertions.*;
2828

29-
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
29+
@SpringBootTest(
30+
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
31+
properties = {
32+
"app.queue.processing.enabled=false",
33+
"spring.task.scheduling.enabled=false"
34+
})
3035
@ActiveProfiles("test")
3136
public class OwnershipGraphQLIntegrationTest extends AbstractAuthenticatedIntegrationTest {
3237
// For the tests:

springqpro-backend/src/test/java/com/springqprobackend/springqpro/testcontainers/IntegrationTestBase.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ public abstract class IntegrationTestBase {
3737
.withDatabaseName("springqpro")
3838
.withUsername("springqpro")
3939
.withPassword("springqpro")
40-
.withReuse(true);
40+
.withReuse(false);
41+
//.withReuse(true);
4142

4243
@Container
4344
static final GenericContainer<?> REDIS =
4445
new GenericContainer<>("redis:7-alpine")
4546
.withExposedPorts(6379)
46-
.withReuse(true);
47+
.withReuse(false);
48+
//.withReuse(true);
4749

4850
@DynamicPropertySource
4951
static void registerDynamicProps(DynamicPropertyRegistry registry) {

0 commit comments

Comments
 (0)