mirror of
https://github.com/corda/corda.git
synced 2024-12-22 14:22:28 +00:00
Test fix and review fix.
This commit is contained in:
parent
6cd692776f
commit
8f326824f3
@ -25,8 +25,8 @@ class CordaRPCClientTest {
|
|||||||
val driverStarted = CountDownLatch(1)
|
val driverStarted = CountDownLatch(1)
|
||||||
driverThread = thread {
|
driverThread = thread {
|
||||||
driver {
|
driver {
|
||||||
val nodeInfo = startNode().get()
|
val driverInfo = startNode().get()
|
||||||
client = CordaRPCClient(toHostAndPort(nodeInfo.address), configureTestSSL())
|
client = CordaRPCClient(toHostAndPort(driverInfo.nodeInfo.address), configureTestSSL())
|
||||||
driverStarted.countDown()
|
driverStarted.countDown()
|
||||||
stopDriver.await()
|
stopDriver.await()
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ class FullNodeConfiguration(config: Config) : NodeConfiguration {
|
|||||||
}
|
}
|
||||||
if (networkMapAddress == null) advertisedServices.add(ServiceInfo(NetworkMapService.type))
|
if (networkMapAddress == null) advertisedServices.add(ServiceInfo(NetworkMapService.type))
|
||||||
val networkMapMessageAddress: SingleMessageRecipient? = if (networkMapAddress == null) null else NodeMessagingClient.makeNetworkMapAddress(networkMapAddress!!)
|
val networkMapMessageAddress: SingleMessageRecipient? = if (networkMapAddress == null) null else NodeMessagingClient.makeNetworkMapAddress(networkMapAddress!!)
|
||||||
return if(clockClass != null) {
|
return if (clockClass != null) {
|
||||||
Node(this, networkMapMessageAddress, advertisedServices, Class.forName(clockClass).newInstance() as Clock)
|
Node(this, networkMapMessageAddress, advertisedServices, Class.forName(clockClass).newInstance() as Clock)
|
||||||
} else {
|
} else {
|
||||||
Node(this, networkMapMessageAddress, advertisedServices)
|
Node(this, networkMapMessageAddress, advertisedServices)
|
||||||
|
Loading…
Reference in New Issue
Block a user