Fixing test clock cordformation dsl

This commit is contained in:
Richard Green 2016-11-18 18:17:02 +00:00
parent b9ef1f1ade
commit c7fedb95f8
2 changed files with 5 additions and 5 deletions

View File

@ -75,8 +75,8 @@ class Node {
config = config.withValue("useHTTPS", ConfigValueFactory.fromAnyRef(isHttps))
}
void useTestClock() {
config = config.withValue("useTestClock", ConfigValueFactory.fromAnyRef(true))
void useTestClock(Boolean useTestClock) {
config = config.withValue("useTestClock", ConfigValueFactory.fromAnyRef(useTestClock))
}
/**

View File

@ -89,7 +89,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: [':install', 'buil
artemisPort 10002
webPort 10003
cordapps = []
useTestClock()
useTestClock true
}
node {
name "Bank A"
@ -99,7 +99,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: [':install', 'buil
artemisPort 10004
webPort 10005
cordapps = []
useTestClock()
useTestClock true
}
node {
name "Bank B"
@ -109,7 +109,7 @@ task deployNodes(type: net.corda.plugins.Cordform, dependsOn: [':install', 'buil
artemisPort 10006
webPort 10007
cordapps = []
useTestClock()
useTestClock true
}
}