Skip to content

Commit

Permalink
Use NSQ 1.2.1 in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pondzix committed Dec 27, 2023
1 parent 8724eb2 commit 9c0da9e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ import com.snowplowanalytics.snowplow.enrich.nsq.generated.BuildInfo

object Containers {

//TODO Tests fail with the latest 1.3.0 version!
private val nsqVersion = "v1.2.1"

case class NetworkInfo(
networkAlias: String,
broadcastAddress: String,
Expand Down Expand Up @@ -135,7 +138,7 @@ object Containers {
Resource.make (
Sync[F].delay {
val container = FixedHostPortGenericContainer(
imageName = "nsqio/nsq:latest",
imageName = s"nsqio/nsq:$nsqVersion",
command = Seq(
"/nsqlookupd",
s"--broadcast-address=${networkInfo.broadcastAddress}",
Expand Down Expand Up @@ -163,7 +166,7 @@ object Containers {
Resource.make(
Sync[F].delay {
val container = FixedHostPortGenericContainer(
imageName = "nsqio/nsq:latest",
imageName = s"nsqio/nsq:$nsqVersion",
command = Seq(
"/nsqd",
s"--broadcast-address=${networkInfo.broadcastAddress}",
Expand Down Expand Up @@ -196,7 +199,7 @@ object Containers {
Resource.make(
Sync[F].delay {
val container = GenericContainer(
dockerImage = "nsqio/nsq:latest",
dockerImage = s"nsqio/nsq:$nsqVersion",
command = Seq(
"/nsq_to_nsq",
s"--nsqd-tcp-address=$sourceAddress",
Expand Down

0 comments on commit 9c0da9e

Please sign in to comment.