Skip to content

Commit 5d11588

Browse files
authored
Merge pull request #18319 from panos-kakos/JAVA-43809
[JAVA-43809]Fixed integration test by using random port
2 parents 979f997 + 5d4d195 commit 5d11588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-modules/spring-boot-caching/src/test/java/com/baeldung/caching/ttl/HotelControllerIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import com.baeldung.caching.ttl.repository.HotelRepository;
1919

2020
@ExtendWith(SpringExtension.class)
21-
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
21+
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
2222
@AutoConfigureMockMvc
2323
@Sql(executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD, scripts = "classpath:data-hotel.sql")
2424
@SlowTest

0 commit comments

Comments
 (0)