From 9f5daf3a67ee0b78988803f03b89fd91e996ae8e Mon Sep 17 00:00:00 2001 From: himadieievsv Date: Thu, 4 Jan 2024 21:59:24 +0900 Subject: [PATCH] add missing test tags --- .../src/test/kotlin/io/redpulsar/core/locks/SemaphoreTest.kt | 2 ++ .../kotlin/io/redpulsar/core/utils/WithTimeoutInThreadTest.kt | 2 ++ .../redpulsar/lettuce/locks/LettuceCountDownLatchBackendTest.kt | 2 ++ 3 files changed, 6 insertions(+) diff --git a/redpulsar-core/src/test/kotlin/io/redpulsar/core/locks/SemaphoreTest.kt b/redpulsar-core/src/test/kotlin/io/redpulsar/core/locks/SemaphoreTest.kt index 4423a89..bf180a0 100644 --- a/redpulsar-core/src/test/kotlin/io/redpulsar/core/locks/SemaphoreTest.kt +++ b/redpulsar-core/src/test/kotlin/io/redpulsar/core/locks/SemaphoreTest.kt @@ -9,6 +9,7 @@ import org.junit.jupiter.api.Assertions.assertFalse import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Nested +import org.junit.jupiter.api.Tag import org.junit.jupiter.api.Test import org.junit.jupiter.api.assertThrows import org.junit.jupiter.params.ParameterizedTest @@ -16,6 +17,7 @@ import org.junit.jupiter.params.provider.ValueSource import kotlin.time.Duration.Companion.milliseconds import kotlin.time.Duration.Companion.seconds +@Tag(TestTags.UNIT) class SemaphoreTest { @Nested inner class SingleRedisInstance { diff --git a/redpulsar-core/src/test/kotlin/io/redpulsar/core/utils/WithTimeoutInThreadTest.kt b/redpulsar-core/src/test/kotlin/io/redpulsar/core/utils/WithTimeoutInThreadTest.kt index acf79b4..ff77b62 100644 --- a/redpulsar-core/src/test/kotlin/io/redpulsar/core/utils/WithTimeoutInThreadTest.kt +++ b/redpulsar-core/src/test/kotlin/io/redpulsar/core/utils/WithTimeoutInThreadTest.kt @@ -4,9 +4,11 @@ import mu.KotlinLogging import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Assertions.assertNull import org.junit.jupiter.api.Assertions.assertTrue +import org.junit.jupiter.api.Tag import org.junit.jupiter.api.Test import kotlin.system.measureTimeMillis +@Tag(TestTags.UNIT) class WithTimeoutInThreadTest { private val logger = KotlinLogging.logger {} diff --git a/redpulsar-lettuce/src/test/kotlin/io/redpulsar/lettuce/locks/LettuceCountDownLatchBackendTest.kt b/redpulsar-lettuce/src/test/kotlin/io/redpulsar/lettuce/locks/LettuceCountDownLatchBackendTest.kt index aadfc1c..f51df65 100644 --- a/redpulsar-lettuce/src/test/kotlin/io/redpulsar/lettuce/locks/LettuceCountDownLatchBackendTest.kt +++ b/redpulsar-lettuce/src/test/kotlin/io/redpulsar/lettuce/locks/LettuceCountDownLatchBackendTest.kt @@ -20,6 +20,7 @@ import org.apache.commons.pool2.impl.GenericObjectPool import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Nested +import org.junit.jupiter.api.Tag import org.junit.jupiter.api.Test import org.junit.jupiter.api.assertThrows import org.junit.jupiter.params.ParameterizedTest @@ -27,6 +28,7 @@ import org.junit.jupiter.params.provider.ValueSource import java.io.IOException import kotlin.time.Duration.Companion.seconds +@Tag(TestTags.UNIT) class LettuceCountDownLatchBackendTest { private lateinit var redis: LettucePubSubPooled private lateinit var sync: RedisPubSubCommands