Skip to content

Commit

Permalink
Increase waiting time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roiocam committed May 15, 2024
1 parent 2e43af8 commit 5a7c52e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@
package org.apache.pekko.persistence.jdbc.migrator

import org.apache.pekko
import org.scalatest.concurrent.PatienceConfiguration.Timeout
import pekko.Done
import pekko.pattern.ask
import pekko.persistence.jdbc.db.SlickDatabase
import pekko.persistence.jdbc.migrator.MigratorSpec._

import scala.concurrent.duration.DurationInt

abstract class JournalMigratorTest(configName: String) extends MigratorSpec(configName) {

it should "migrate the event journal" in {
Expand Down Expand Up @@ -127,15 +130,15 @@ abstract class JournalMigratorTest(configName: String) extends MigratorSpec(conf
(actorA2 ? Deposit(i)).futureValue
(actorA3 ? Deposit(i)).futureValue
}
eventually {
eventually(Timeout(30.seconds)) {
countJournal().futureValue shouldBe 3000
}
}
}
} // legacy persistence
withActorSystem { implicit systemNew =>
withReadJournal { implicit readJournal =>
eventually {
eventually(Timeout(30.seconds)) {
countJournal().futureValue shouldBe 0 // before migration
JournalMigrator(SlickDatabase.profile(config, "slick")).migrate().futureValue shouldBe Done
countJournal().futureValue shouldBe 3000 // after migration
Expand Down

0 comments on commit 5a7c52e

Please sign in to comment.