Skip to content

Commit

Permalink
Re-enable Java sleep test
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed May 30, 2023
1 parent ec32cc4 commit 3f9a3d4
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions tests/src/test/kotlin/dev/restate/e2e/SleepTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down Expand Up @@ -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
) {
Expand All @@ -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
) {
Expand Down

0 comments on commit 3f9a3d4

Please sign in to comment.