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

An initially-opened Pulse Stage should emit the first available element #109

Open
raboof opened this issue Jul 14, 2017 · 0 comments
Open
Labels

Comments

@raboof
Copy link
Member

raboof commented Jul 14, 2017

It's actually not that clear to me why this test has an initialTimeout (and why the source repeats '1', wouldn't it be a more reliable test with Source(1 to 10) or so?

An initially-opened Pulse Stage
[info] - should emit the first available element *** FAILED *** (118 milliseconds)
[info]   The future returned an exception of type: java.util.concurrent.TimeoutException, with message: The first element has not yet passed through in 2 milliseconds.. (PulseSpec.scala:63)
[info]   org.scalatest.exceptions.TestFailedException:
[info]   at org.scalatest.concurrent.Futures$FutureConcept.tryTryAgain$1(Futures.scala:531)
[info]   at org.scalatest.concurrent.Futures$FutureConcept.futureValueImpl(Futures.scala:550)
[info]   at org.scalatest.concurrent.Futures$FutureConcept.futureValueImpl$(Futures.scala:479)
[info]   at org.scalatest.concurrent.ScalaFutures$$anon$1.futureValueImpl(ScalaFutures.scala:275)
[info]   at org.scalatest.concurrent.Futures.whenReady(Futures.scala:676)
[info]   at org.scalatest.concurrent.Futures.whenReady$(Futures.scala:675)
[info]   at akka.stream.contrib.PulseSpecAutoFusingOff.whenReady(PulseSpec.scala:13)
[info]   at akka.stream.contrib.PulseSpec.$anonfun$$init$$7(PulseSpec.scala:63)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant