mirror of
https://github.com/corda/corda.git
synced 2025-06-03 08:00:57 +00:00
CORDA-1461 Fix smoke tests (#3150)
This commit is contained in:
parent
d0d07287e7
commit
26c6ba6118
@ -48,7 +48,8 @@ public class StandaloneCordaRPCJavaClientTest {
|
|||||||
port.getAndIncrement(),
|
port.getAndIncrement(),
|
||||||
port.getAndIncrement(),
|
port.getAndIncrement(),
|
||||||
true,
|
true,
|
||||||
Collections.singletonList(rpcUser)
|
Collections.singletonList(rpcUser),
|
||||||
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
|
@ -15,7 +15,8 @@ class NodeConfig(
|
|||||||
val rpcPort: Int,
|
val rpcPort: Int,
|
||||||
val rpcAdminPort: Int,
|
val rpcAdminPort: Int,
|
||||||
val isNotary: Boolean,
|
val isNotary: Boolean,
|
||||||
val users: List<User>
|
val users: List<User>,
|
||||||
|
val devMode: Boolean = true
|
||||||
) {
|
) {
|
||||||
companion object {
|
companion object {
|
||||||
val renderOptions: ConfigRenderOptions = ConfigRenderOptions.defaults().setOriginComments(false)
|
val renderOptions: ConfigRenderOptions = ConfigRenderOptions.defaults().setOriginComments(false)
|
||||||
@ -38,6 +39,7 @@ class NodeConfig(
|
|||||||
.root())
|
.root())
|
||||||
.withValue("rpcUsers", valueFor(users.map { it.toConfig().root().unwrapped() }.toList()))
|
.withValue("rpcUsers", valueFor(users.map { it.toConfig().root().unwrapped() }.toList()))
|
||||||
.withValue("useTestClock", valueFor(true))
|
.withValue("useTestClock", valueFor(true))
|
||||||
|
.withValue("devMode", valueFor(devMode))
|
||||||
return if (isNotary) {
|
return if (isNotary) {
|
||||||
config.withValue("notary", ConfigValueFactory.fromMap(mapOf("validating" to true)))
|
config.withValue("notary", ConfigValueFactory.fromMap(mapOf("validating" to true)))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user