You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/02/04 21:51:05 UTC

incubator-tinkerpop git commit: ensure that the context is closed after the test suite has completed.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-962 a28b1fdc6 -> 25e5b2404


ensure that the context is closed after the test suite has completed.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/25e5b240
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/25e5b240
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/25e5b240

Branch: refs/heads/TINKERPOP-962
Commit: 25e5b24049ef22d1bb64ae652d6ff5cba4786451
Parents: a28b1fd
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Thu Feb 4 13:51:12 2016 -0700
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Thu Feb 4 13:51:12 2016 -0700

----------------------------------------------------------------------
 .../gremlin/spark/structure/io/SparkContextStorageCheck.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/25e5b240/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/SparkContextStorageCheck.java
----------------------------------------------------------------------
diff --git a/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/SparkContextStorageCheck.java b/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/SparkContextStorageCheck.java
index 06deb7c..f9e5172 100644
--- a/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/SparkContextStorageCheck.java
+++ b/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/SparkContextStorageCheck.java
@@ -26,6 +26,7 @@ import org.apache.tinkerpop.gremlin.hadoop.Constants;
 import org.apache.tinkerpop.gremlin.hadoop.structure.io.AbstractStorageCheck;
 import org.apache.tinkerpop.gremlin.spark.structure.Spark;
 import org.apache.tinkerpop.gremlin.structure.io.Storage;
+import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -41,6 +42,13 @@ public class SparkContextStorageCheck extends AbstractStorageCheck {
         Spark.close();
     }
 
+    @After
+    public void tearDown() throws Exception {
+        super.tearDown();
+        Spark.create("local[4]");
+        Spark.close();
+    }
+
     @Test
     @LoadGraphWith(LoadGraphWith.GraphData.MODERN)
     public void shouldSupportHeadMethods() throws Exception {