diff --git a/core/src/test/kotlin/net/corda/core/flows/AttachmentTests.kt b/core/src/test/kotlin/net/corda/core/flows/AttachmentTests.kt index 451ef6387b..10692820f7 100644 --- a/core/src/test/kotlin/net/corda/core/flows/AttachmentTests.kt +++ b/core/src/test/kotlin/net/corda/core/flows/AttachmentTests.kt @@ -153,8 +153,8 @@ class AttachmentTests : WithMockNet { .andRunNetwork() private fun StartedNode<*>.updateAttachment(attachment: NodeAttachmentService.DBAttachment) = database.transaction { - session.update(attachment).andRunNetwork() - } + session.update(attachment) + }.andRunNetwork() private fun StartedNode<*>.startAttachmentFlow(hash: SecureHash, otherSide: Party) = startFlowAndRunNetwork( InitiatingFetchAttachmentsFlow(otherSide, setOf(hash)))