diff options
author | Paul Phillips <paulp@improving.org> | 2009-02-10 23:46:39 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-02-10 23:46:39 +0000 |
commit | 64af689e6659ab170826508f37720ee6e54386fa (patch) | |
tree | 0e2e5100426d23f2a734a97863c4eadcc77c38d3 /test/pending/jvm/timeout.scala | |
parent | f4720669d6b4946653b5b419d85f5ec5a1e95bad (diff) | |
download | scala-64af689e6659ab170826508f37720ee6e54386fa.tar.gz scala-64af689e6659ab170826508f37720ee6e54386fa.tar.bz2 scala-64af689e6659ab170826508f37720ee6e54386fa.zip |
moved most of the passing tests from pending to...
moved most of the passing tests from pending to files ; reunited
inner.scala with inner.check
Diffstat (limited to 'test/pending/jvm/timeout.scala')
-rw-r--r-- | test/pending/jvm/timeout.scala | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/test/pending/jvm/timeout.scala b/test/pending/jvm/timeout.scala deleted file mode 100644 index 12f1bd7bad..0000000000 --- a/test/pending/jvm/timeout.scala +++ /dev/null @@ -1,33 +0,0 @@ - -import scala.actors.Actor._ -import scala.actors.TIMEOUT - -object Test extends Application { - case class Timing(time: Long) - - actor { - val a = actor { - react { - case 'doTiming => - val s = sender - reactWithin(500) { - case TIMEOUT => - s ! Timing(System.currentTimeMillis) - } - } - } - - val start = System.currentTimeMillis - (a !? 'doTiming) match { - case Timing(end) => - val delay = end - start - - if (delay > 100 && delay < 900) - println("OK") - else { - println("EXPECTED: 100 < x < 900") - println("ACTUAL: "+delay) - } - } - } -} |