diff options
author | James Iry <james.iry@typesafe.com> | 2013-07-22 16:23:31 -0700 |
---|---|---|
committer | James Iry <james.iry@typesafe.com> | 2013-11-01 15:30:23 -0700 |
commit | 0057d4d83cb40116b76296505f15075002e4b2e0 (patch) | |
tree | 5ca6f18bff686f3167eda21055e7bdd2b191e86f /test/files/jvm/future-spec/FutureTests.scala | |
parent | 9b8d108ed7cb1a049e4e8500b6896e9554328aab (diff) | |
download | scala-0057d4d83cb40116b76296505f15075002e4b2e0.tar.gz scala-0057d4d83cb40116b76296505f15075002e4b2e0.tar.bz2 scala-0057d4d83cb40116b76296505f15075002e4b2e0.zip |
Make future-spec tests not spawn threads in constructors.
The future-spec tests were spawning threads in object constructors which
meant they were on the ragged edge of entering deadlock from the static
initialization lock acquired during the static initialization blocks we
use to construct object reference fields. My work on restructuring
lambdas pushed it over the edge. This commit refactors the tests to use
class constructors rather than object constructors.
Diffstat (limited to 'test/files/jvm/future-spec/FutureTests.scala')
-rw-r--r-- | test/files/jvm/future-spec/FutureTests.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/jvm/future-spec/FutureTests.scala b/test/files/jvm/future-spec/FutureTests.scala index 5d213691df..1595b2c862 100644 --- a/test/files/jvm/future-spec/FutureTests.scala +++ b/test/files/jvm/future-spec/FutureTests.scala @@ -10,7 +10,7 @@ import scala.util.{Try,Success,Failure} -object FutureTests extends MinimalScalaTest { +class FutureTests extends MinimalScalaTest { /* some utils */ |