From c8eb13efe235a40c64e64b9250587a0b4a142ef4 Mon Sep 17 00:00:00 2001 From: josecoll Date: Tue, 14 May 2019 18:30:46 +0100 Subject: [PATCH] Fix JUnit by adjusting assertion to reflect improved uncompressed byte size. --- .../test/kotlin/net/corda/node/serialization/kryo/KryoTests.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/test/kotlin/net/corda/node/serialization/kryo/KryoTests.kt b/node/src/test/kotlin/net/corda/node/serialization/kryo/KryoTests.kt index abfec25bc2..0ccae766e8 100644 --- a/node/src/test/kotlin/net/corda/node/serialization/kryo/KryoTests.kt +++ b/node/src/test/kotlin/net/corda/node/serialization/kryo/KryoTests.kt @@ -354,7 +354,7 @@ class KryoTests(private val compression: CordaSerializationEncoding?) { val uncompressedSize = obj.checkpointSerialize(context.withEncoding(null)).size val compressedSize = obj.checkpointSerialize(context.withEncoding(CordaSerializationEncoding.SNAPPY)).size // If these need fixing, sounds like Kryo wire format changed and checkpoints might not surive an upgrade. - assertEquals(20222, uncompressedSize) + assertEquals(20172, uncompressedSize) assertEquals(1111, compressedSize) } }