mirror of
https://github.com/corda/corda.git
synced 2024-12-19 13:08:04 +00:00
Fixed TransactionSerializationTests.signWireTX by ensuring the signed transaction corruption always corrupts the signature.
This commit is contained in:
parent
172be1301d
commit
e83c6e6b9d
@ -69,7 +69,7 @@ class TransactionSerializationTests {
|
||||
signedTX.verifySignatures()
|
||||
|
||||
// Corrupt the data and ensure the signature catches the problem.
|
||||
signedTX.id.bytes[5] = 0
|
||||
signedTX.id.bytes[5] = signedTX.id.bytes[5].inc()
|
||||
assertFailsWith(SignatureException::class) {
|
||||
signedTX.verifySignatures()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user