diff options
author | Matei Zaharia <matei@eecs.berkeley.edu> | 2011-05-13 12:03:58 -0700 |
---|---|---|
committer | Matei Zaharia <matei@eecs.berkeley.edu> | 2011-05-13 12:03:58 -0700 |
commit | 4db50e26c75263b2edae468b0e8a9283b5c2e6f1 (patch) | |
tree | 19572154b19a6b4aa4309020b8c2c29803868e84 /bagel/src | |
parent | aca8150c52d0cd3f54b47ab90010ab369a820844 (diff) | |
download | spark-4db50e26c75263b2edae468b0e8a9283b5c2e6f1.tar.gz spark-4db50e26c75263b2edae468b0e8a9283b5c2e6f1.tar.bz2 spark-4db50e26c75263b2edae468b0e8a9283b5c2e6f1.zip |
Fixed unit tests by making them clean up the SparkContext after use and
thus clean up the various singletons (RDDCache, MapOutputTracker, etc).
This isn't perfect yet (ideally we shouldn't use singleton objects at
all) but we can fix that later.
Diffstat (limited to 'bagel/src')
-rw-r--r-- | bagel/src/test/scala/bagel/BagelSuite.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bagel/src/test/scala/bagel/BagelSuite.scala b/bagel/src/test/scala/bagel/BagelSuite.scala index 1b47fc9ed5..9e64d3f136 100644 --- a/bagel/src/test/scala/bagel/BagelSuite.scala +++ b/bagel/src/test/scala/bagel/BagelSuite.scala @@ -28,6 +28,7 @@ class BagelSuite extends FunSuite with Assertions { }) for (vert <- result.collect) assert(vert.age === numSupersteps) + sc.stop() } test("halting by message silence") { @@ -49,5 +50,6 @@ class BagelSuite extends FunSuite with Assertions { }) for (vert <- result.collect) assert(vert.age === numSupersteps) + sc.stop() } } |