ENT-11113 Uncommented ignored test cases (#7648)

ENT-11113 Uncommented ignored test cases
ENT-11113 Updated time for Flow Speed Test
This commit is contained in:
Balwant Kothari 2024-01-23 20:41:50 +05:30 committed by GitHub
parent f15e6ec56a
commit 5c193ce47f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 11 deletions

View File

@ -37,7 +37,6 @@ import net.corda.testing.node.internal.enclosedCordapp
import net.corda.testing.node.internal.rpcDriver
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.Ignore
import org.junit.Test
import java.lang.IllegalStateException
import java.lang.RuntimeException
@ -54,7 +53,7 @@ import kotlin.test.assertFalse
import kotlin.test.assertNull
import kotlin.test.assertTrue
@Ignore("TODO JDK17: Fixme")
class CordaRPCClientReconnectionTest {
private val portAllocator = incrementalPortAllocation()

View File

@ -9,11 +9,9 @@ import net.corda.testing.core.SerializationEnvironmentRule
import net.corda.testing.node.internal.rpcDriver
import net.corda.testing.node.internal.startRpcClient
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
@Ignore("TODO JDK17: Fixme")
class RPCFailureTests {
@Rule
@JvmField
@ -51,14 +49,14 @@ class RPCFailureTests {
@Test(timeout=300_000)
fun `kotlin NPE`() = rpc {
assertThatThrownBy { it.kotlinNPE() }.isInstanceOf(CordaRuntimeException::class.java)
.hasMessageContaining("kotlin.KotlinNullPointerException")
.hasMessageContaining("java.lang.NullPointerException")
}
@Test(timeout=300_000)
fun `kotlin NPE async`() = rpc {
val future = it.kotlinNPEAsync()
assertThatThrownBy { future.getOrThrow() }.isInstanceOf(CordaRuntimeException::class.java)
.hasMessageContaining("kotlin.KotlinNullPointerException")
.hasMessageContaining("java.lang.NullPointerException")
}
@Test(timeout=300_000)

View File

@ -20,13 +20,11 @@ import net.corda.testing.driver.DriverParameters
import net.corda.testing.driver.driver
import net.corda.testing.internal.IS_S390X
import org.junit.Assume
import org.junit.Ignore
import org.junit.Test
import java.time.Duration
import java.time.Instant
import kotlin.test.assertTrue
@Ignore("TODO JDK17: Fixme - flaky test")
class FlowSleepTest {
@Test(timeout = 300_000)
@ -81,7 +79,7 @@ class FlowSleepTest {
@Suspendable
override fun call(): Pair<Instant, Instant> {
val start = Instant.now()
sleep(5.seconds)
sleep(6.seconds)
return start to Instant.now()
}
}
@ -92,9 +90,9 @@ class FlowSleepTest {
@Suspendable
override fun call(): Triple<Instant, Instant, Instant> {
val start = Instant.now()
sleep(5.seconds)
sleep(6.seconds)
val middle = Instant.now()
sleep(10.seconds)
sleep(11.seconds)
return Triple(start, middle, Instant.now())
}
}