Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finally fixing RuntimeEventListenerSpec #849

Closed
sebastian-peter opened this issue Jul 15, 2024 · 0 comments · Fixed by #850
Closed

Finally fixing RuntimeEventListenerSpec #849

sebastian-peter opened this issue Jul 15, 2024 · 0 comments · Fixed by #850
Assignees
Labels
bug Something isn't working test Issues related to (unit) tests

Comments

@sebastian-peter
Copy link
Member

... which still randomly fails:

A runtime event listener
- must add a valid runtime event to the blocking queue for further processing (5 milliseconds)
- must return valid log messages for each status event *** FAILED *** (126 milliseconds)
  java.lang.AssertionError: Received 1 excess messages on LoggingTestKitImpl(1,Some(INFO),Some(edu.ie3.simona.event.listener.RuntimeEventListener$),None,Some(Initializing Agents and Services for Simulation ... ),None,None,Map(),true,None).
  at org.apache.pekko.actor.testkit.typed.internal.LoggingTestKitImpl.expect(LoggingTestKitImpl.scala:115)
  at edu.ie3.simona.event.listener.RuntimeEventListenerSpec.$anonfun$new$5(RuntimeEventListenerSpec.scala:162)
  at edu.ie3.simona.event.listener.RuntimeEventListenerSpec.$anonfun$new$5$adapted(RuntimeEventListenerSpec.scala:158)
  at scala.collection.immutable.List.foreach(List.scala:334)
  at edu.ie3.simona.event.listener.RuntimeEventListenerSpec.$anonfun$new$4(RuntimeEventListenerSpec.scala:158)
  at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
  at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
  at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
  at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
  at org.scalatest.Transformer.apply(Transformer.scala:22)
  ...
@sebastian-peter sebastian-peter added bug Something isn't working test Issues related to (unit) tests labels Jul 15, 2024
@sebastian-peter sebastian-peter self-assigned this Jul 15, 2024
@sebastian-peter sebastian-peter changed the title Finally fixing RuntimeEventListenerSpec Finally fixing RuntimeEventListenerSpec Jul 15, 2024
danielfeismann added a commit that referenced this issue Jul 17, 2024
…tener-spec

Fixing `RuntimeEventListenerSpec` by separating out logging test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working test Issues related to (unit) tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant