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

Future timeout in RichFutureWithTimingSpec #196

Open
xevix opened this issue Feb 9, 2016 · 0 comments
Open

Future timeout in RichFutureWithTimingSpec #196

xevix opened this issue Feb 9, 2016 · 0 comments

Comments

@xevix
Copy link
Contributor

xevix commented Feb 9, 2016

I get this intermittently, and only in the vagrant machine (which is naturally slower). I've experienced this before in other projects, and it is due to Scalatest's remarkably low default timeout of 150ms for a Future. I've never found a great solution to this problem other than increasing the scale factor when running tests, but am open to suggestions.

[info] RichFutureWithTiming
[info] - should not start measuring too early *** FAILED ***
[info]   A timeout occurred waiting for a future to complete. Queried 11 times, sleeping 15 milliseconds between each query. (RichFutureWithTimingSpec.scala:43)
[info]   org.scalatest.concurrent.Futures$FutureConcept$$anon$1:
[info]   at org.scalatest.concurrent.Futures$FutureConcept$class.tryTryAgain$1(Futures.scala:546)
[info]   at org.scalatest.concurrent.Futures$FutureConcept$class.futureValue(Futures.scala:558)
[info]   at org.scalatest.concurrent.ScalaFutures$$anon$1.futureValue(ScalaFutures.scala:74)
[info]   at org.scalatest.concurrent.Futures$class.whenReady(Futures.scala:684)
[info]   at com.m3.octoparts.future.RichFutureWithTimingSpec.whenReady(RichFutureWithTimingSpec.scala:9)
[info]   at com.m3.octoparts.future.RichFutureWithTimingSpec$$anonfun$1.apply$mcV$sp(RichFutureWithTimingSpec.scala:43)
[info]   at com.m3.octoparts.future.RichFutureWithTimingSpec$$anonfun$1.apply(RichFutureWithTimingSpec.scala:14)
[info]   at com.m3.octoparts.future.RichFutureWithTimingSpec$$anonfun$1.apply(RichFutureWithTimingSpec.scala:14)

... snip ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant