diff --git a/node/src/integration-test/kotlin/net/corda/node/services/AttachmentLoadingTests.kt b/node/src/integration-test/kotlin/net/corda/node/services/AttachmentLoadingTests.kt index 0d6bc46545..ecbe731158 100644 --- a/node/src/integration-test/kotlin/net/corda/node/services/AttachmentLoadingTests.kt +++ b/node/src/integration-test/kotlin/net/corda/node/services/AttachmentLoadingTests.kt @@ -124,10 +124,12 @@ class AttachmentLoadingTests : TestDependencyInjectionBase() { private fun DriverDSLExposedInterface.createTwoNodesAndNotary(): List { val adminUser = User("admin", "admin", permissions = setOf("ALL")) - return listOf( + val nodes = listOf( startNode(providedName = bankAName, rpcUsers = listOf(adminUser)), startNode(providedName = bankBName, rpcUsers = listOf(adminUser)), startNode(providedName = notaryName, rpcUsers = listOf(adminUser), advertisedServices = setOf(ServiceInfo(SimpleNotaryService.type))) ).transpose().getOrThrow() // Wait for all nodes to start up. + nodes.forEach { it.rpc.waitUntilNetworkReady() } + return nodes } }