NOTICK: Add timeouts to serialization-djvm tests too. (#5967)

This commit is contained in:
Chris Rankin 2020-02-14 17:32:18 +00:00 committed by GitHub
parent 3547b629c3
commit dec366148b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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()

View File

@ -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"