problem: unit test failure

This commit is contained in:
Igor Artamonov
2020-04-26 20:43:46 -04:00
parent 101578aa5f
commit c9082b3cd0
2 changed files with 7 additions and 7 deletions

View File

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

View File

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