Skip to content

Commit

Permalink
Fix test compilation on 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrdom committed Oct 13, 2024
1 parent 041cae0 commit a9edb50
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.apache.pekko.persistence.testkit.query

import scala.collection.immutable.Seq
import scala.concurrent.duration._
import com.typesafe.config.ConfigFactory
import org.apache.pekko
Expand Down Expand Up @@ -183,16 +184,12 @@ class EventsByTagSpec
val ref2 = setupEmpty("f2", Set(tag))
ref2 ! Command(Seq("f2-1", "f2-2"), ackProbe.ref)
ackProbe.expectMessage(Done)
probe.request(2)
probe.expectNext() shouldBe ("f2", "f2-1")
probe.expectNext() shouldBe ("f2", "f2-2")
probe.request(2).expectNextN(Seq(("f2", "f2-1"), ("f2", "f2-2")))

val ref1 = setupEmpty("f1", Set(tag))
ref1 ! Command(Seq("f1-1", "f1-2"), ackProbe.ref)
ackProbe.expectMessage(Done)
probe.request(2)
probe.expectNext() shouldBe ("f1", "f1-1")
probe.expectNext() shouldBe ("f1", "f1-2")
probe.request(2).expectNextN(Seq(("f1", "f1-1"), ("f1", "f1-2")))
}

"find new events when persistence ID uses multiple tags" in {
Expand Down

0 comments on commit a9edb50

Please sign in to comment.