diff options
author | Heather Miller <heather.miller@epfl.ch> | 2012-08-05 12:38:13 +0200 |
---|---|---|
committer | Heather Miller <heather.miller@epfl.ch> | 2012-08-05 12:38:13 +0200 |
commit | cb6066ee6136d78ceb8c3b5c06cefac998966dd0 (patch) | |
tree | dfc17f91d1ad10190b8c1c523c94e8028f029f17 /test/files | |
parent | 3cb0e784a05db7d0b542cec9bf4c5fbf3772a6cf (diff) | |
download | scala-cb6066ee6136d78ceb8c3b5c06cefac998966dd0.tar.gz scala-cb6066ee6136d78ceb8c3b5c06cefac998966dd0.tar.bz2 scala-cb6066ee6136d78ceb8c3b5c06cefac998966dd0.zip |
Temporarily skips failing test due to optimizer bug SI-6188
Also swaps the arguments to method transform on Try, so as to mirror transform on scala.concurrent.Future.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/future-spec/TryTests.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/jvm/future-spec/TryTests.scala b/test/files/jvm/future-spec/TryTests.scala index 9d749c44ba..47ce9c2e15 100644 --- a/test/files/jvm/future-spec/TryTests.scala +++ b/test/files/jvm/future-spec/TryTests.scala @@ -55,12 +55,12 @@ object TryTests extends MinimalScalaTest { Failure[Int](e) flatMap(x => Success(1 + x)) mustEqual Failure(e) } - "when there is an exception" in { - Success(1).flatMap[Int](_ => throw e) mustEqual Failure(e) + // "when there is an exception" in { + // Success(1).flatMap[Int](_ => throw e) mustEqual Failure(e) - val e2 = new Exception - Failure[Int](e).flatMap[Int](_ => throw e2) mustEqual Failure(e) - } + // val e2 = new Exception + // Failure[Int](e).flatMap[Int](_ => throw e2) mustEqual Failure(e) + // } } "flatten" in { |