Move andRunNetwork out of transaction block

This commit is contained in:
Dominic Fox 2018-07-19 12:02:46 +01:00
parent 974db3a15b
commit c0966067cc

View File

@ -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)))