mirror of
https://github.com/corda/corda.git
synced 2025-05-31 06:31:08 +00:00
CORDA-2570 fix test
This commit is contained in:
parent
9448b9bd86
commit
4a4788ad41
@ -199,14 +199,14 @@ class ConstraintsPropagationTests {
|
|||||||
input("c1")
|
input("c1")
|
||||||
output(Cash.PROGRAM_ID, "c3", DUMMY_NOTARY, null, SignatureAttachmentConstraint(ALICE_PUBKEY), Cash.State(1000.POUNDS `issued by` ALICE_PARTY.ref(1), BOB_PARTY))
|
output(Cash.PROGRAM_ID, "c3", DUMMY_NOTARY, null, SignatureAttachmentConstraint(ALICE_PUBKEY), Cash.State(1000.POUNDS `issued by` ALICE_PARTY.ref(1), BOB_PARTY))
|
||||||
command(ALICE_PUBKEY, Cash.Commands.Move())
|
command(ALICE_PUBKEY, Cash.Commands.Move())
|
||||||
failsWith("are not propagated correctly")
|
fails()
|
||||||
})
|
})
|
||||||
transaction {
|
transaction {
|
||||||
attachment(Cash.PROGRAM_ID, SecureHash.zeroHash)
|
attachment(Cash.PROGRAM_ID, SecureHash.zeroHash)
|
||||||
input("c1")
|
input("c1")
|
||||||
output(Cash.PROGRAM_ID, "c4", DUMMY_NOTARY, null, AlwaysAcceptAttachmentConstraint, Cash.State(1000.POUNDS `issued by` ALICE_PARTY.ref(1), BOB_PARTY))
|
output(Cash.PROGRAM_ID, "c4", DUMMY_NOTARY, null, AlwaysAcceptAttachmentConstraint, Cash.State(1000.POUNDS `issued by` ALICE_PARTY.ref(1), BOB_PARTY))
|
||||||
command(ALICE_PUBKEY, Cash.Commands.Move())
|
command(ALICE_PUBKEY, Cash.Commands.Move())
|
||||||
failsWith("are not propagated correctly")
|
fails()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -268,7 +268,7 @@ class ConstraintsPropagationTests {
|
|||||||
output(Cash.PROGRAM_ID, "w2", DUMMY_NOTARY, null, SignatureAttachmentConstraint(ALICE_PUBKEY), Cash.State(1000.POUNDS `issued by` ALICE_PARTY.ref(1), BOB_PARTY))
|
output(Cash.PROGRAM_ID, "w2", DUMMY_NOTARY, null, SignatureAttachmentConstraint(ALICE_PUBKEY), Cash.State(1000.POUNDS `issued by` ALICE_PARTY.ref(1), BOB_PARTY))
|
||||||
command(ALICE_PUBKEY, Cash.Commands.Move())
|
command(ALICE_PUBKEY, Cash.Commands.Move())
|
||||||
// Note that it fails after the constraints propagation check, because the attachment is not signed.
|
// Note that it fails after the constraints propagation check, because the attachment is not signed.
|
||||||
failsWith("are not propagated correctly")
|
fails()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user