Skip to content

Commit

Permalink
Fixes a logback blaming for multiple configs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsuharnikov committed Oct 4, 2024
1 parent 39beb63 commit 849e595
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inScope(Global)(
"-Ywarn-unused:-implicits",
"-Xlint"
),
javacOptions ++= Seq(
javaOptions ++= Seq(
"-Dfile.encoding=UTF-8" // JVM default charset for proper and deterministic getBytes behaviour
)
)
Expand Down
3 changes: 3 additions & 0 deletions consensus-client-it/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ libraryDependencies ++= Seq(
)

Test / fork := true
Test / javaOptions ++= Seq(
s"-Dlogback.configurationFile=${(Test / resourceDirectory).value}/logback-test.xml" // Fixes a logback blaming for multiple configs
)
Test / envVars ++= Map(
"CONFIGS_DIR" -> s"${baseDirectory.value}/../local-network/configs",
"LOGS_DIR" -> s"${target.value}/test-logs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import java.nio.charset.StandardCharsets
trait BaseItTestSuite extends AnyFreeSpec with ScorexLogging with BeforeAndAfterAll with EitherValues with OptionValues with CustomMatchers {
protected lazy val network = Networks.network

protected lazy val ec1: EcContainer = new EcContainer(network, "ec-1", Networks.ipForNode(2))
protected lazy val ec1: EcContainer = new EcContainer(network, "ec-1", Networks.ipForNode(2)) // ipForNode(1) is assigned to Ryuk
protected lazy val waves1: WavesNodeContainer = new WavesNodeContainer(
network = network,
number = 1,
Expand Down

0 comments on commit 849e595

Please sign in to comment.