mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
Fixed flaky test
This commit is contained in:
parent
ed06443ce2
commit
655f2be8b3
@ -124,10 +124,12 @@ class AttachmentLoadingTests : TestDependencyInjectionBase() {
|
|||||||
|
|
||||||
private fun DriverDSLExposedInterface.createTwoNodesAndNotary(): List<NodeHandle> {
|
private fun DriverDSLExposedInterface.createTwoNodesAndNotary(): List<NodeHandle> {
|
||||||
val adminUser = User("admin", "admin", permissions = setOf("ALL"))
|
val adminUser = User("admin", "admin", permissions = setOf("ALL"))
|
||||||
return listOf(
|
val nodes = listOf(
|
||||||
startNode(providedName = bankAName, rpcUsers = listOf(adminUser)),
|
startNode(providedName = bankAName, rpcUsers = listOf(adminUser)),
|
||||||
startNode(providedName = bankBName, rpcUsers = listOf(adminUser)),
|
startNode(providedName = bankBName, rpcUsers = listOf(adminUser)),
|
||||||
startNode(providedName = notaryName, rpcUsers = listOf(adminUser), advertisedServices = setOf(ServiceInfo(SimpleNotaryService.type)))
|
startNode(providedName = notaryName, rpcUsers = listOf(adminUser), advertisedServices = setOf(ServiceInfo(SimpleNotaryService.type)))
|
||||||
).transpose().getOrThrow() // Wait for all nodes to start up.
|
).transpose().getOrThrow() // Wait for all nodes to start up.
|
||||||
|
nodes.forEach { it.rpc.waitUntilNetworkReady() }
|
||||||
|
return nodes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user