mirror of
https://github.com/corda/corda.git
synced 2025-02-21 09:51:57 +00:00
EG-2854 Failing Test: net.corda.node.internal.NodeStartupCliTest.--nodeconf using absolute path will not be changed (#6393)
* EG-2854 Failing Test: net.corda.node.internal.NodeStartupCliTest.--nodeconf using absolute path will not be changed * fix bug EG-2854 * PR comment
This commit is contained in:
parent
516a4bf3a1
commit
6fc9f2eacf
@ -22,11 +22,13 @@ class NodeStartupCliTest {
|
||||
|
||||
companion object {
|
||||
private lateinit var workingDirectory: Path
|
||||
private lateinit var rootDirectory: Path
|
||||
private var customNodeConf = "custom_node.conf"
|
||||
@BeforeClass
|
||||
@JvmStatic
|
||||
fun initDirectories() {
|
||||
workingDirectory = Paths.get(".").normalize().toAbsolutePath()
|
||||
rootDirectory = Paths.get("/").normalize().toAbsolutePath()
|
||||
}
|
||||
}
|
||||
|
||||
@ -64,8 +66,8 @@ class NodeStartupCliTest {
|
||||
|
||||
@Test(timeout=300_000)
|
||||
fun `--nodeconf using absolute path will not be changed`() {
|
||||
CommandLine.populateCommand(startup, CommonCliConstants.CONFIG_FILE, "/$customNodeConf")
|
||||
Assertions.assertThat(startup.cmdLineOptions.configFile).isEqualTo( "/" / customNodeConf)
|
||||
CommandLine.populateCommand(startup, CommonCliConstants.CONFIG_FILE, (rootDirectory / customNodeConf).toString())
|
||||
Assertions.assertThat(startup.cmdLineOptions.configFile).isEqualTo(rootDirectory / customNodeConf)
|
||||
}
|
||||
|
||||
@Test(timeout=3_000)
|
||||
|
Loading…
x
Reference in New Issue
Block a user