Removing explicit waits for the default notary in driver tests.

This issue was fixed in https://github.com/corda/corda/pull/2947.
This commit is contained in:
Shams Asari 2018-04-11 15:55:06 +01:00
parent 9b58114146
commit a83f3f3abe
5 changed files with 11 additions and 19 deletions

View File

@ -46,14 +46,6 @@ Unreleased
* Upgraded H2 to v1.4.197.
* Shell (embedded available only in dev mode or via SSH) connects to the node via RPC instead of using the ``CordaRPCOps`` object directly.
To enable RPC connectivity ensure nodes ``rpcSettings.address`` and ``rpcSettings.adminAddress`` settings are present.
.. _changelog_v3:
Version 3.0
-----------
* Per CorDapp configuration is now exposed. ``CordappContext`` now exposes a ``CordappConfig`` object that is populated
at CorDapp context creation time from a file source during runtime.

View File

@ -5,7 +5,6 @@ import com.r3.corda.networkmanage.common.utils.CertPathAndKey
import com.r3.corda.networkmanage.doorman.signer.LocalSigner
import net.corda.core.crypto.random63BitValue
import net.corda.core.internal.bufferUntilSubscribed
import net.corda.core.internal.concurrent.transpose
import net.corda.core.internal.div
import net.corda.core.internal.readObject
import net.corda.core.messaging.ParametersUpdateInfo
@ -90,15 +89,19 @@ class NetworkParametersUpdateTest : IntegrationTest() {
internalDriver(
portAllocation = portAllocation,
compatibilityZone = compatibilityZone,
notarySpecs = emptyList(),
initialiseSerialization = false,
extraCordappPackagesToScan = listOf("net.corda.finance")
) {
var (alice) = listOf(
var (alice, bob) = listOf(
startNode(providedName = ALICE_NAME),
startNode(providedName = BOB_NAME),
defaultNotaryNode
).transpose().getOrThrow()
alice as NodeHandleInternal
startNode(providedName = BOB_NAME)
).map { it.getOrThrow() as NodeHandleInternal }
// Make sure that stopping Bob doesn't remove him from the network map
bob.stop()
Thread.sleep(timeoutMillis * 2)
assertThat(alice.rpc.networkMapSnapshot().map { it.legalIdentities[0].name }).contains(BOB_NAME)
val snapshot = alice.rpc.networkParametersFeed().snapshot
val updates = alice.rpc.networkParametersFeed().updates.bufferUntilSubscribed()

View File

@ -258,8 +258,8 @@ class NetworkManagementServer(dataSourceProperties: Properties,
"Parameters we are trying to switch to haven't been signed yet"
}
logger.info("""Flag day has occurred, however the new network parameters won't be active until the new network map is signed.
From: $activeNetParams
To: ${parametersUpdate.networkParameters}""")
From: ${activeNetParams?.networkParameters}
To: ${parametersUpdate.networkParameters.networkParameters}""")
networkMapStorage.setParametersUpdateStatus(parametersUpdate, UpdateStatus.FLAG_DAY)
}

View File

@ -174,7 +174,6 @@ class NodePerformanceTests : IntegrationTest() {
)) {
val aliceFuture = startNode(providedName = ALICE_NAME, rpcUsers = listOf(user), startInSameProcess = true)
val alice = aliceFuture.getOrThrow() as InProcess
defaultNotaryNode.getOrThrow()
val metricRegistry = startReporter((this as InternalDriverDSL).shutdownManager, alice.internalServices.monitoringService.metrics)
CordaRPCClient(alice.rpcAddress).use("A", "A") { connection ->
startPublishingFixedRateInjector(
@ -202,7 +201,6 @@ class NodePerformanceTests : IntegrationTest() {
val bobFuture = startNode(providedName = BOB_NAME, rpcUsers = listOf(user))
val alice = aliceFuture.getOrThrow() as InProcess
val bob = bobFuture.getOrThrow() as InProcess
defaultNotaryNode.getOrThrow()
CordaRPCClient(alice.rpcAddress).use("A", "A") { connection ->
connection.proxy.startFlow(::CashIssueAndPaymentNoSelection, 1.DOLLARS, OpaqueBytes.of(0), bob.nodeInfo.legalIdentities[0], false, defaultNotaryIdentity).returnValue.getOrThrow()
}

View File

@ -35,7 +35,6 @@ class NoSelectionIntegrationTest {
portAllocation = PortAllocation.Incremental(20000)
)) {
val alice = startNode(rpcUsers = listOf(aliceUser)).get()
defaultNotaryNode.get()
CordaRPCClient(alice.rpcAddress).use("A", "A") { connection ->
connection.proxy.startFlow(::CashIssueAndPaymentNoSelection, 1.DOLLARS, OpaqueBytes.of(0), alice.nodeInfo.legalIdentities[0], false, defaultNotaryIdentity).returnValue.getOrThrow()
}