From c9082b3cd0ad4d7ac9c81a5d157e81d5cdfd82d8 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Sun, 26 Apr 2020 20:43:46 -0400 Subject: [PATCH] problem: unit test failure --- .../emeraldpay/dshackle/cache/BlocksRedisCacheSpec.groovy | 6 +++--- .../io/emeraldpay/dshackle/cache/TxRedisCacheSpec.groovy | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/groovy/io/emeraldpay/dshackle/cache/BlocksRedisCacheSpec.groovy b/src/test/groovy/io/emeraldpay/dshackle/cache/BlocksRedisCacheSpec.groovy index a6de791f..cbd64196 100644 --- a/src/test/groovy/io/emeraldpay/dshackle/cache/BlocksRedisCacheSpec.groovy +++ b/src/test/groovy/io/emeraldpay/dshackle/cache/BlocksRedisCacheSpec.groovy @@ -57,13 +57,13 @@ class BlocksRedisCacheSpec extends Specification { then: dec.height == 100 - dec.hash.toHex() == hash3 + dec.hash.toHex() == hash3.substring(2) dec.difficulty.toString() == "10515" dec.timestamp == Instant.ofEpochSecond(10501050) dec.json == "test".bytes dec.transactions.size() == 2 - dec.transactions[0].toHex() == hash2 - dec.transactions[1].toHex() == hash1 + dec.transactions[0].toHex() == hash2.substring(2) + dec.transactions[1].toHex() == hash1.substring(2) dec == cont } diff --git a/src/test/groovy/io/emeraldpay/dshackle/cache/TxRedisCacheSpec.groovy b/src/test/groovy/io/emeraldpay/dshackle/cache/TxRedisCacheSpec.groovy index cadcdda8..04a028af 100644 --- a/src/test/groovy/io/emeraldpay/dshackle/cache/TxRedisCacheSpec.groovy +++ b/src/test/groovy/io/emeraldpay/dshackle/cache/TxRedisCacheSpec.groovy @@ -56,8 +56,8 @@ class TxRedisCacheSpec extends Specification { then: dec.height == 2000 - dec.hash.toHex() == hash1 - dec.blockId.toHex() == hash2 + dec.hash.toHex() == hash1.substring(2) + dec.blockId.toHex() == hash2.substring(2) dec.json == "test".bytes dec == cont } @@ -170,8 +170,8 @@ class TxRedisCacheSpec extends Specification { act1 == null act2 == null act3 != null - act3.hash.toHex() == hash3 + act3.hash.toHex() == hash3.substring(2) act4 != null - act4.hash.toHex() == hash4 + act4.hash.toHex() == hash4.substring(2) } }