From 3f9a3d4eaac29b4a30a5a51b682557501c862744 Mon Sep 17 00:00:00 2001 From: slinkydeveloper Date: Tue, 30 May 2023 12:19:33 +0200 Subject: [PATCH] Re-enable Java sleep test --- .../test/kotlin/dev/restate/e2e/SleepTest.kt | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/tests/src/test/kotlin/dev/restate/e2e/SleepTest.kt b/tests/src/test/kotlin/dev/restate/e2e/SleepTest.kt index ddb2554a..c39f7e52 100644 --- a/tests/src/test/kotlin/dev/restate/e2e/SleepTest.kt +++ b/tests/src/test/kotlin/dev/restate/e2e/SleepTest.kt @@ -14,7 +14,6 @@ import kotlin.time.Duration.Companion.milliseconds import kotlin.time.Duration.Companion.nanoseconds import kotlin.time.Duration.Companion.seconds import org.assertj.core.api.Assertions.assertThat -import org.junit.jupiter.api.Disabled import org.junit.jupiter.api.Tag import org.junit.jupiter.api.Test import org.junit.jupiter.api.Timeout @@ -35,22 +34,6 @@ class JavaSleepTest : BaseSleepTest() { .build() } } - - @Disabled("https://github.com/restatedev/sdk-java/issues/85") - override fun sleepAndKillServiceEndpoint( - @InjectChannel runtimeChannel: Channel, - @InjectContainerHandle(COORDINATOR_HOSTNAME) coordinatorContainer: ContainerHandle - ) { - super.sleepAndKillServiceEndpoint(runtimeChannel, coordinatorContainer) - } - - @Disabled("https://github.com/restatedev/sdk-java/issues/85") - override fun sleepAndTerminateServiceEndpoint( - @InjectChannel runtimeChannel: Channel, - @InjectContainerHandle(COORDINATOR_HOSTNAME) coordinatorContainer: ContainerHandle - ) { - super.sleepAndTerminateServiceEndpoint(runtimeChannel, coordinatorContainer) - } } @Tag("always-suspending") @@ -92,7 +75,7 @@ abstract class BaseSleepTest { @Timeout(value = 15, unit = TimeUnit.SECONDS) @Test - open fun sleepAndKillServiceEndpoint( + fun sleepAndKillServiceEndpoint( @InjectChannel runtimeChannel: Channel, @InjectContainerHandle(COORDINATOR_HOSTNAME) coordinatorContainer: ContainerHandle ) { @@ -119,7 +102,7 @@ abstract class BaseSleepTest { @Timeout(value = 15, unit = TimeUnit.SECONDS) @Test - open fun sleepAndTerminateServiceEndpoint( + fun sleepAndTerminateServiceEndpoint( @InjectChannel runtimeChannel: Channel, @InjectContainerHandle(COORDINATOR_HOSTNAME) coordinatorContainer: ContainerHandle ) {