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

Fix or disable randomly failing test in RuntimeEventListenerSpec #709

Closed
sebastian-peter opened this issue Jan 23, 2024 · 0 comments · Fixed by #737
Closed

Fix or disable randomly failing test in RuntimeEventListenerSpec #709

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

Comments

@sebastian-peter
Copy link
Member

Testing the log messages is super unreliable and randomly fails in CI.

Try to find out why, and if it is not fixable, disable the test (ignore)

- must return valid log messages for each status event *** FAILED *** (111 milliseconds)
  java.lang.AssertionError: Received 1 excess messages on LoggingTestKitImpl(1,Some(INFO),None,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:154)
  at edu.ie3.simona.event.listener.RuntimeEventListenerSpec.$anonfun$new$5$adapted(RuntimeEventListenerSpec.scala:150)
  at scala.collection.immutable.List.foreach(List.scala:333)
  at edu.ie3.simona.event.listener.RuntimeEventListenerSpec.$anonfun$new$4(RuntimeEventListenerSpec.scala:150)
  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 Jan 23, 2024
@sebastian-peter sebastian-peter self-assigned this Feb 14, 2024
danielfeismann added a commit that referenced this issue Feb 18, 2024
…RuntimeEventListenerSpec

Fixing unreliable `RuntimeEventListenerSpec`
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