From 1d0dd7ae03d6e4cca8a1e7cbf9cfb67e5dd4634f Mon Sep 17 00:00:00 2001 From: Grzegorz Bielski Date: Thu, 7 Mar 2024 20:22:08 +0100 Subject: [PATCH] Move cassandraContainer up --- .../scassandra/ReplicationStrategyConfigImplicits.scala | 2 +- .../com/evolutiongaming/scassandra/CassandraSpec.scala | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scassandra/src/main/scala/com/evolutiongaming/scassandra/ReplicationStrategyConfigImplicits.scala b/scassandra/src/main/scala/com/evolutiongaming/scassandra/ReplicationStrategyConfigImplicits.scala index 69675b6..600da51 100644 --- a/scassandra/src/main/scala/com/evolutiongaming/scassandra/ReplicationStrategyConfigImplicits.scala +++ b/scassandra/src/main/scala/com/evolutiongaming/scassandra/ReplicationStrategyConfigImplicits.scala @@ -1,6 +1,6 @@ package com.evolutiongaming.scassandra -import com.evolutiongaming.scassandra.ReplicationStrategyConfig.* +import com.evolutiongaming.scassandra.ReplicationStrategyConfig._ import com.evolutiongaming.scassandra.util.PureconfigSyntax._ import pureconfig.ConfigReader diff --git a/tests/src/test/scala/com/evolutiongaming/scassandra/CassandraSpec.scala b/tests/src/test/scala/com/evolutiongaming/scassandra/CassandraSpec.scala index 496acb3..4bae091 100644 --- a/tests/src/test/scala/com/evolutiongaming/scassandra/CassandraSpec.scala +++ b/tests/src/test/scala/com/evolutiongaming/scassandra/CassandraSpec.scala @@ -21,6 +21,9 @@ import org.scalatest.wordspec.AnyWordSpec class CassandraSpec extends AnyWordSpec with BeforeAndAfterAll with Matchers { + private lazy val cassandraContainer = CassandraContainer( + dockerImageNameOverride = DockerImageName.parse("cassandra:3.11.7"), + ) private lazy val config = CassandraConfig.Default.copy( @@ -28,10 +31,6 @@ class CassandraSpec extends AnyWordSpec with BeforeAndAfterAll with Matchers { port = cassandraContainer.mappedPort(9042), ) - private lazy val cassandraContainer = CassandraContainer( - dockerImageNameOverride = DockerImageName.parse("cassandra:3.11.7"), - ) - // due to test structure we need to start the container before the test suite cassandraContainer.start()