mirror of
https://github.com/corda/corda.git
synced 2025-05-02 16:53:22 +00:00
Move andRunNetwork out of transaction block
This commit is contained in:
parent
974db3a15b
commit
c0966067cc
@ -153,8 +153,8 @@ class AttachmentTests : WithMockNet {
|
|||||||
.andRunNetwork()
|
.andRunNetwork()
|
||||||
|
|
||||||
private fun StartedNode<*>.updateAttachment(attachment: NodeAttachmentService.DBAttachment) = database.transaction {
|
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(
|
private fun StartedNode<*>.startAttachmentFlow(hash: SecureHash, otherSide: Party) = startFlowAndRunNetwork(
|
||||||
InitiatingFetchAttachmentsFlow(otherSide, setOf(hash)))
|
InitiatingFetchAttachmentsFlow(otherSide, setOf(hash)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user