From 26c6ba61187680b8bc73e65cbffe9ec420c4bd7d Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Tue, 15 May 2018 13:25:28 +0100 Subject: [PATCH] CORDA-1461 Fix smoke tests (#3150) --- .../net/corda/java/rpc/StandaloneCordaRPCJavaClientTest.java | 3 ++- .../src/main/kotlin/net/corda/smoketesting/NodeConfig.kt | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/rpc/src/smoke-test/java/net/corda/java/rpc/StandaloneCordaRPCJavaClientTest.java b/client/rpc/src/smoke-test/java/net/corda/java/rpc/StandaloneCordaRPCJavaClientTest.java index 30edeeb897..32e2747072 100644 --- a/client/rpc/src/smoke-test/java/net/corda/java/rpc/StandaloneCordaRPCJavaClientTest.java +++ b/client/rpc/src/smoke-test/java/net/corda/java/rpc/StandaloneCordaRPCJavaClientTest.java @@ -48,7 +48,8 @@ public class StandaloneCordaRPCJavaClientTest { port.getAndIncrement(), port.getAndIncrement(), true, - Collections.singletonList(rpcUser) + Collections.singletonList(rpcUser), + true ); @Before diff --git a/testing/smoke-test-utils/src/main/kotlin/net/corda/smoketesting/NodeConfig.kt b/testing/smoke-test-utils/src/main/kotlin/net/corda/smoketesting/NodeConfig.kt index 145846962b..120faa5314 100644 --- a/testing/smoke-test-utils/src/main/kotlin/net/corda/smoketesting/NodeConfig.kt +++ b/testing/smoke-test-utils/src/main/kotlin/net/corda/smoketesting/NodeConfig.kt @@ -15,7 +15,8 @@ class NodeConfig( val rpcPort: Int, val rpcAdminPort: Int, val isNotary: Boolean, - val users: List + val users: List, + val devMode: Boolean = true ) { companion object { val renderOptions: ConfigRenderOptions = ConfigRenderOptions.defaults().setOriginComments(false) @@ -38,6 +39,7 @@ class NodeConfig( .root()) .withValue("rpcUsers", valueFor(users.map { it.toConfig().root().unwrapped() }.toList())) .withValue("useTestClock", valueFor(true)) + .withValue("devMode", valueFor(devMode)) return if (isNotary) { config.withValue("notary", ConfigValueFactory.fromMap(mapOf("validating" to true))) } else {