mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +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()
|
||||
|
||||
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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user