apache / pekko-persistence-cassandra

A replicated Apache Pekko Persistence journal backed by Apache Cassandra
https://pekko.apache.org/
Apache License 2.0
9 stars 10 forks source link

fix unstable tests #33

Open nvollmar opened 1 year ago

nvollmar commented 1 year ago

org.apache.pekko.persistence.cassandra.query.EventsByTagSpecBackTracking

org.apache.pekko.persistence.cassandra.query.EventsByTagPersistenceIdCleanupSpec

org.apache.pekko.persistence.cassandra.EventsByTagRecoverySpec

nvollmar commented 1 year ago

fixed org.apache.pekko.persistence.cassandra.query.EventsByTagSpecBackTracking

nvollmar commented 1 year ago

org.apache.pekko.persistence.cassandra.query.EventsByTagPersistenceIdCleanupSpec is still a bit tricky, I think it comes down to timing uncertainty. Reducing the wait time would render the test pointless.

nvollmar commented 1 year ago

new test popped up: org.apache.pekko.persistence.cassandra.EventsByTagRecoverySpec


[info]   java.lang.AssertionError: assertion failed: timeout (20 seconds) during expectMsg: message matching partial function
[info]   at scala.Predef$.assert(Predef.scala:279)
[info]   at org.apache.pekko.testkit.TestKitBase.expectMsgPF(TestKit.scala:490)
[info]   at org.apache.pekko.testkit.TestKitBase.expectMsgPF$(TestKit.scala:487)
[info]   at org.apache.pekko.testkit.TestKit.expectMsgPF(TestKit.scala:984)
[info]   at org.apache.pekko.stream.testkit.TestSubscriber$ManualProbe.expectEventWithTimeoutPF(StreamTestKit.scala:737)
[info]   at org.apache.pekko.stream.testkit.TestSubscriber$ManualProbe.expectNextWithTimeoutPF(StreamTestKit.scala:714)
[info]   at org.apache.pekko.stream.testkit.TestSubscriber$ManualProbe.expectNextPF(StreamTestKit.scala:705)
[info]   at org.apache.pekko.persistence.cassandra.EventsByTagRecoverySpec.$anonfun$new$19(EventsByTagRecoverySpec.scala:217)```
Roiocam commented 5 months ago

EventsByTagPersistenceIdCleanupSpec flaky appears frequently: