Skip to content

Commit 8279fa1

Browse files
authored
fix : HealthCheckIntegrationTests nested test classes executed as unit tests (#3579)
1 parent 8ebfb01 commit 8279fa1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/test/java/io/lettuce/core/failover/HealthCheckIntegrationTest.java renamed to src/test/java/io/lettuce/core/failover/HealthCheckIntegrationTests.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
@ExtendWith(LettuceExtension.class)
4444
@Tag("integration")
4545
@DisplayName("HealthCheck Integration Tests")
46-
public class HealthCheckIntegrationTest extends MultiDbTestSupport {
46+
public class HealthCheckIntegrationTests extends MultiDbTestSupport {
4747

4848
/** Default timeout for await() calls in this test - 500ms for fast test execution */
4949
private static final Duration AWAIT_TIMEOUT = Duration.ofMillis(500);
@@ -63,7 +63,7 @@ public class HealthCheckIntegrationTest extends MultiDbTestSupport {
6363
private final RedisCommandTimeoutException timeoutException = new RedisCommandTimeoutException("Test Timeout");
6464

6565
@Inject
66-
HealthCheckIntegrationTest(MultiDbClient client) {
66+
HealthCheckIntegrationTests(MultiDbClient client) {
6767
super(client);
6868
}
6969

@@ -85,7 +85,8 @@ void extractRunIds() {
8585

8686
@Nested
8787
@DisplayName("Health Check Configuration")
88-
class HealthCheckConfigurationTests {
88+
@Tag("integration")
89+
class HealthCheckConfigurationIntegrationTests {
8990

9091
@Test
9192
@DisplayName("Should create MultiDbClient without health checks when supplier is NO_HEALTH_CHECK")
@@ -304,7 +305,8 @@ void shouldConfigureHealthCheckIntervalAndTimeout() {
304305

305306
@Nested
306307
@DisplayName("Health Check Lifecycle")
307-
class HealthCheckLifecycleTests {
308+
@Tag("integration")
309+
class HealthCheckLifecycleIntegrationTests {
308310

309311
@Test
310312
@DisplayName("Should start health checks automatically when connection is created")
@@ -448,6 +450,7 @@ void shouldTransitionFromUnknownToHealthy() {
448450

449451
@Nested
450452
@DisplayName("Failover Integration")
453+
@Tag("integration")
451454
class FailoverIntegrationTests {
452455

453456
@Test
@@ -676,7 +679,7 @@ private static String extractRunId(String info) {
676679

677680
@Nested
678681
@DisplayName("Dynamic Database Management")
679-
class DynamicDatabaseManagementTests {
682+
class DynamicDatabaseManagementIntegrationTests {
680683

681684
@Test
682685
@DisplayName("Should create health check when adding new database")

0 commit comments

Comments
 (0)