mirror of
https://github.com/corda/corda.git
synced 2025-01-28 15:14:48 +00:00
Fix tests
This commit is contained in:
parent
1027b0e49c
commit
a3e2aff080
@ -271,7 +271,6 @@ class ArtemisMessagingTest {
|
|||||||
createMessagingServer().start()
|
createMessagingServer().start()
|
||||||
|
|
||||||
val messagingClient = createMessagingClient(platformVersion = platformVersion)
|
val messagingClient = createMessagingClient(platformVersion = platformVersion)
|
||||||
startNodeMessagingClient()
|
|
||||||
messagingClient.addMessageHandler(TOPIC) { message, _, handle ->
|
messagingClient.addMessageHandler(TOPIC) { message, _, handle ->
|
||||||
database.transaction { handle.persistDeduplicationId() }
|
database.transaction { handle.persistDeduplicationId() }
|
||||||
handle.acknowledge() // We ACK first so that if it fails we won't get a duplicate in [receivedMessages]
|
handle.acknowledge() // We ACK first so that if it fails we won't get a duplicate in [receivedMessages]
|
||||||
|
@ -167,7 +167,7 @@ open class MockNetwork(
|
|||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
constructor(cordappPackages: List<String>, parameters: MockNetworkParameters = MockNetworkParameters()) : this(cordappPackages, defaultParameters = parameters)
|
constructor(cordappPackages: List<String>, parameters: MockNetworkParameters = MockNetworkParameters()) : this(cordappPackages, defaultParameters = parameters)
|
||||||
|
|
||||||
private val internalMockNetwork: InternalMockNetwork = InternalMockNetwork(cordappPackages, defaultParameters, networkSendManuallyPumped, threadPerNode, servicePeerAllocationStrategy, notarySpecs)
|
private val internalMockNetwork: InternalMockNetwork = InternalMockNetwork(cordappPackages, defaultParameters, networkSendManuallyPumped, threadPerNode, servicePeerAllocationStrategy, notarySpecs, networkParameters)
|
||||||
|
|
||||||
/** Which node will be used as the primary notary during transaction builds. */
|
/** Which node will be used as the primary notary during transaction builds. */
|
||||||
val defaultNotaryNode get(): StartedMockNode = StartedMockNode.create(internalMockNetwork.defaultNotaryNode)
|
val defaultNotaryNode get(): StartedMockNode = StartedMockNode.create(internalMockNetwork.defaultNotaryNode)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user