mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
NOTICK: Add timeouts to serialization-djvm tests too. (#5967)
This commit is contained in:
parent
3547b629c3
commit
dec366148b
@ -13,7 +13,7 @@ import java.util.function.Function
|
||||
@ExtendWith(LocalSerialization::class)
|
||||
class DeserializeOffsetTimeTest : TestBase(KOTLIN) {
|
||||
@Test
|
||||
fun `test deserializing instant`() {
|
||||
fun `test deserializing offset time`() {
|
||||
val time = OffsetTime.now()
|
||||
val data = time.serialize()
|
||||
|
||||
|
@ -13,16 +13,19 @@ import net.corda.djvm.source.BootstrapClassLoader
|
||||
import net.corda.djvm.source.UserPathSource
|
||||
import org.junit.jupiter.api.AfterAll
|
||||
import org.junit.jupiter.api.BeforeAll
|
||||
import org.junit.jupiter.api.Timeout
|
||||
import org.junit.jupiter.api.fail
|
||||
import java.io.File
|
||||
import java.nio.file.Files.exists
|
||||
import java.nio.file.Files.isDirectory
|
||||
import java.nio.file.Path
|
||||
import java.nio.file.Paths
|
||||
import java.util.concurrent.TimeUnit.MINUTES
|
||||
import java.util.function.Consumer
|
||||
import kotlin.concurrent.thread
|
||||
|
||||
@Suppress("unused", "MemberVisibilityCanBePrivate")
|
||||
@Timeout(5, unit = MINUTES)
|
||||
abstract class TestBase(type: SandboxType) {
|
||||
companion object {
|
||||
const val SANDBOX_STRING = "sandbox.java.lang.String"
|
||||
|
Loading…
Reference in New Issue
Block a user