You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2023/06/27 13:26:02 UTC
[incubator-pekko-projection] branch main updated: match scalatest version used in pekko-testkit (#60)
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-projection.git
The following commit(s) were added to refs/heads/main by this push:
new a1a27da match scalatest version used in pekko-testkit (#60)
a1a27da is described below
commit a1a27daddfcfd8b30e3369880e7a724102f60136
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Tue Jun 27 14:25:57 2023 +0100
match scalatest version used in pekko-testkit (#60)
* match scalatest version used in pekko-testkit
* Update Dependencies.scala
* retry assertions
---
.../projection/cassandra/CassandraProjectionSpec.scala | 16 ++++++++++++----
project/Dependencies.scala | 4 ++--
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/cassandra/src/it/scala/org/apache/pekko/projection/cassandra/CassandraProjectionSpec.scala b/cassandra/src/it/scala/org/apache/pekko/projection/cassandra/CassandraProjectionSpec.scala
index 00f0584..5960086 100644
--- a/cassandra/src/it/scala/org/apache/pekko/projection/cassandra/CassandraProjectionSpec.scala
+++ b/cassandra/src/it/scala/org/apache/pekko/projection/cassandra/CassandraProjectionSpec.scala
@@ -368,13 +368,17 @@ class CassandraProjectionSpec
sourceProbe.get.sendNext(Envelope(entityId, n, s"elem-$n"))
}
offsetShouldBe(projectionId, 10L)
- repository.findById(entityId).futureValue.get.text should include("elem-15")
+ eventually {
+ repository.findById(entityId).futureValue.get.text should include("elem-15")
+ }
(16 to 22).foreach { n =>
sourceProbe.get.sendNext(Envelope(entityId, n, s"elem-$n"))
}
offsetShouldBe(projectionId, 20L)
- repository.findById(entityId).futureValue.get.text should include("elem-22")
+ eventually {
+ repository.findById(entityId).futureValue.get.text should include("elem-22")
+ }
}
}
@@ -404,13 +408,17 @@ class CassandraProjectionSpec
sourceProbe.get.sendNext(Envelope(entityId, n, s"elem-$n"))
}
offsetShouldBe(projectionId, 10L)
- repository.findById(entityId).futureValue.get.text should include("elem-15")
+ eventually {
+ repository.findById(entityId).futureValue.get.text should include("elem-15")
+ }
(16 to 17).foreach { n =>
sourceProbe.get.sendNext(Envelope(entityId, n, s"elem-$n"))
}
offsetShouldBe(projectionId, 17L)
- repository.findById(entityId).futureValue.get.text should include("elem-17")
+ eventually {
+ repository.findById(entityId).futureValue.get.text should include("elem-17")
+ }
}
}
diff --git a/project/Dependencies.scala b/project/Dependencies.scala
index 7baf8d5..2459ff7 100644
--- a/project/Dependencies.scala
+++ b/project/Dependencies.scala
@@ -28,7 +28,7 @@ object Dependencies {
val connectors = ConnectorsVersionInDocs
val connectorsKafka = sys.props.getOrElse("build.connectors.kafka.version", ConnectorsKafkaVersionInDocs)
val slick = "3.3.3"
- val scalaTest = "3.1.1"
+ val scalaTest = "3.2.14"
val testContainers = "1.15.3"
val junit = "4.13.2"
val h2Driver = "1.4.200"
@@ -66,7 +66,7 @@ object Dependencies {
val persistenceTestkit = "org.apache.pekko" %% "pekko-persistence-testkit" % Versions.pekko % "test"
val scalatest = "org.scalatest" %% "scalatest" % Versions.scalaTest % allTestConfig
- val scalatestJUnit = "org.scalatestplus" %% "junit-4-12" % (Versions.scalaTest + ".0") % allTestConfig
+ val scalatestJUnit = "org.scalatestplus" %% "junit-4-13" % (Versions.scalaTest + ".0") % allTestConfig
val junit = "junit" % "junit" % Versions.junit % allTestConfig
val h2Driver = Compile.h2Driver % allTestConfig
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org