Skip to content

Commit cd4a091

Browse files
committed
fix test failed
1 parent c8d9b77 commit cd4a091

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/test/SharedSQLContext.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717

1818
package org.apache.spark.sql.test
1919

20+
import java.io.File
21+
2022
import org.scalatest.BeforeAndAfterEach
2123

2224
import org.apache.spark.{DebugFilesystem, SparkConf}
2325
import org.apache.spark.sql.{SparkSession, SQLContext}
24-
import org.apache.spark.sql.internal.SQLConf
26+
import org.apache.spark.util.Utils
2527

2628

2729
/**
@@ -71,6 +73,7 @@ trait SharedSQLContext extends SQLTestUtils with BeforeAndAfterEach {
7173
*/
7274
protected override def afterAll(): Unit = {
7375
super.afterAll()
76+
Utils.deleteRecursively(new File(_spark.sessionState.conf.warehousePath))
7477
if (_spark != null) {
7578
_spark.stop()
7679
_spark = null

0 commit comments

Comments
 (0)