Skip to content

Commit 223528c

Browse files
committed
Update SparkJoinsTest.java
1 parent a35ec3f commit 223528c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spark/src/test/java/com/matthewrathbone/sparktest/SparkJoinsTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ public void setUp() {
3737

3838
@After
3939
public void tearDown() {
40-
sc.stop();
41-
sc = null;
40+
if (sc != null){
41+
sc.stop();
42+
}
4243
}
4344

4445
@Test

0 commit comments

Comments
 (0)