Skip to content

Commit

Permalink
fix: flaky H2ScalaAllPersistenceIdsTest (#199)
Browse files Browse the repository at this point in the history
* fix: flaky H2ScalaAllPersistenceIdsTest

* use Shaping ThrottleMode

* rollback to original stream ways...

* slow down the db query

* fix delaySource flaky

* eager fetch

* not need config override
  • Loading branch information
Roiocam committed May 30, 2024
1 parent eabd722 commit 0d0a85d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class JdbcReadJournal(config: Config, configPath: String)(implicit val system: E
JournalSequenceActor.props(readJournalDao, readJournalConfig.journalSequenceRetrievalConfiguration),
s"$configPath.pekko-persistence-jdbc-journal-sequence-actor")
private val delaySource =
Source.tick(0.seconds, readJournalConfig.refreshInterval, 0).take(1)
Source.tick(0.seconds, readJournalConfig.refreshInterval, 0)

/**
* Same type of query as `persistenceIds` but the event stream
Expand Down

0 comments on commit 0d0a85d

Please sign in to comment.