Skip to content

Commit

Permalink
Move cassandraContainer up
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz-bielski committed Mar 7, 2024
1 parent ac8c7a7 commit 1d0dd7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@ 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(
contactPoints = Nel(cassandraContainer.containerIpAddress),
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()

Expand Down

0 comments on commit 1d0dd7a

Please sign in to comment.