Skip to content

Commit

Permalink
Move andRunNetwork out of transaction block
Browse files Browse the repository at this point in the history
  • Loading branch information
r3domfox committed Jul 19, 2018
1 parent 974db3a commit c096606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/test/kotlin/net/corda/core/flows/AttachmentTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit c096606

Please sign in to comment.