Make logging available in IntelliJ between gradle clean and assemble (#929)

* Enforce absence of node from client rpc smokeTest classpath
This commit is contained in:
Andrzej Cichocki
2017-06-28 09:54:09 +01:00
committed by GitHub
parent 77e1d54c43
commit 0aadc037ef
15 changed files with 96 additions and 66 deletions

View File

@ -37,7 +37,7 @@ class BootTests {
assertThat(logConfigFile).isRegularFile()
driver(isDebug = true, systemProperties = mapOf("log4j.configurationFile" to logConfigFile.toString())) {
val alice = startNode(ALICE.name).get()
val logFolder = alice.configuration.baseDirectory / "logs"
val logFolder = alice.configuration.baseDirectory / NodeStartup.LOGS_DIRECTORY_NAME
val logFile = logFolder.toFile().listFiles { _, name -> name.endsWith(".log") }.single()
// Start second Alice, should fail
assertThatThrownBy {