From 4a4788ad41c9f117cc3c6e46433e366ae3fb67eb Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Wed, 13 Feb 2019 10:58:28 +0000 Subject: [PATCH] CORDA-2570 fix test --- .../net/corda/core/contracts/ConstraintsPropagationTests.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/test/kotlin/net/corda/core/contracts/ConstraintsPropagationTests.kt b/core/src/test/kotlin/net/corda/core/contracts/ConstraintsPropagationTests.kt index d7bf86827b..73e9231217 100644 --- a/core/src/test/kotlin/net/corda/core/contracts/ConstraintsPropagationTests.kt +++ b/core/src/test/kotlin/net/corda/core/contracts/ConstraintsPropagationTests.kt @@ -199,14 +199,14 @@ class ConstraintsPropagationTests { 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)) command(ALICE_PUBKEY, Cash.Commands.Move()) - failsWith("are not propagated correctly") + fails() }) transaction { attachment(Cash.PROGRAM_ID, SecureHash.zeroHash) input("c1") 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()) - 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)) command(ALICE_PUBKEY, Cash.Commands.Move()) // Note that it fails after the constraints propagation check, because the attachment is not signed. - failsWith("are not propagated correctly") + fails() } } }