summaryrefslogtreecommitdiff
path: root/test/files/jvm/actor-receivewithin.scala
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2010-01-27 09:07:56 +0000
committerPhilipp Haller <hallerp@gmail.com>2010-01-27 09:07:56 +0000
commit311622a6d1f2a10b2bcf7baf34d7c41fa5b25f25 (patch)
tree48eb6fe3e7531948596608dbb0801d3b66e84706 /test/files/jvm/actor-receivewithin.scala
parentdaa6f82dd130464a1a318b31b1055e5c00d99673 (diff)
downloadscala-311622a6d1f2a10b2bcf7baf34d7c41fa5b25f25.tar.gz
scala-311622a6d1f2a10b2bcf7baf34d7c41fa5b25f25.tar.bz2
scala-311622a6d1f2a10b2bcf7baf34d7c41fa5b25f25.zip
Made actor-receivewithin test deterministic.
Diffstat (limited to 'test/files/jvm/actor-receivewithin.scala')
-rw-r--r--test/files/jvm/actor-receivewithin.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/jvm/actor-receivewithin.scala b/test/files/jvm/actor-receivewithin.scala
index c6818cf211..a5c87c2722 100644
--- a/test/files/jvm/actor-receivewithin.scala
+++ b/test/files/jvm/actor-receivewithin.scala
@@ -29,6 +29,7 @@ object A extends Actor {
}
}
B ! 'next
+ receive { case 'done => }
cnt = 0
while (cnt < 501) {
cnt += 1
@@ -56,6 +57,7 @@ object B extends Actor {
for (_ <- 1 to 500) {
A ! 'msg2
}
+ A ! 'done
}
}
}