File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
core/src/test/scala/org/apache/spark Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,11 @@ class FileServerSuite extends FunSuite with LocalSparkContext {
3131 @ transient var tmpFile : File = _
3232 @ transient var tmpJarUrl : String = _
3333
34- override def beforeEach () {
35- super .beforeEach()
34+ override def withFixture (test : NoArgTest ) = {
3635 resetSparkContext()
37- System .setProperty(" spark.authenticate" , " false" )
36+ TestUtils .withSystemProperty(" spark.authenticate" , " false" ) {
37+ super .withFixture(test)
38+ }
3839 }
3940
4041 override def beforeAll () {
@@ -52,7 +53,6 @@ class FileServerSuite extends FunSuite with LocalSparkContext {
5253 val jarFile = new File (testTempDir, " test.jar" )
5354 val jarStream = new FileOutputStream (jarFile)
5455 val jar = new JarOutputStream (jarStream, new java.util.jar.Manifest ())
55- System .setProperty(" spark.authenticate" , " false" )
5656
5757 val jarEntry = new JarEntry (textFile.getName)
5858 jar.putNextEntry(jarEntry)
You can’t perform that action at this time.
0 commit comments