problem: unit test failure
This commit is contained in:
@@ -57,13 +57,13 @@ class BlocksRedisCacheSpec extends Specification {
|
|||||||
|
|
||||||
then:
|
then:
|
||||||
dec.height == 100
|
dec.height == 100
|
||||||
dec.hash.toHex() == hash3
|
dec.hash.toHex() == hash3.substring(2)
|
||||||
dec.difficulty.toString() == "10515"
|
dec.difficulty.toString() == "10515"
|
||||||
dec.timestamp == Instant.ofEpochSecond(10501050)
|
dec.timestamp == Instant.ofEpochSecond(10501050)
|
||||||
dec.json == "test".bytes
|
dec.json == "test".bytes
|
||||||
dec.transactions.size() == 2
|
dec.transactions.size() == 2
|
||||||
dec.transactions[0].toHex() == hash2
|
dec.transactions[0].toHex() == hash2.substring(2)
|
||||||
dec.transactions[1].toHex() == hash1
|
dec.transactions[1].toHex() == hash1.substring(2)
|
||||||
dec == cont
|
dec == cont
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,8 +56,8 @@ class TxRedisCacheSpec extends Specification {
|
|||||||
|
|
||||||
then:
|
then:
|
||||||
dec.height == 2000
|
dec.height == 2000
|
||||||
dec.hash.toHex() == hash1
|
dec.hash.toHex() == hash1.substring(2)
|
||||||
dec.blockId.toHex() == hash2
|
dec.blockId.toHex() == hash2.substring(2)
|
||||||
dec.json == "test".bytes
|
dec.json == "test".bytes
|
||||||
dec == cont
|
dec == cont
|
||||||
}
|
}
|
||||||
@@ -170,8 +170,8 @@ class TxRedisCacheSpec extends Specification {
|
|||||||
act1 == null
|
act1 == null
|
||||||
act2 == null
|
act2 == null
|
||||||
act3 != null
|
act3 != null
|
||||||
act3.hash.toHex() == hash3
|
act3.hash.toHex() == hash3.substring(2)
|
||||||
act4 != null
|
act4 != null
|
||||||
act4.hash.toHex() == hash4
|
act4.hash.toHex() == hash4.substring(2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user