Skip to content

Commit 0e2753f

Browse files
sisihjsrowen
authored andcommitted
[SPARK-6585][Tests]Fix FileServerSuite testcase in some Env.
Change FileServerSuite.test("HttpFileServer should not work with SSL when the server is untrusted") catch SSLException Author: June.He <[email protected]> Closes #5239 from sisihj/SPARK-6585 and squashes the following commits: cb19ae3 [June.He] Change FileServerSuite.test("HttpFileServer should not work with SSL when the server is untrusted") catch SSLException
1 parent 52ece26 commit 0e2753f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/scala/org/apache/spark/FileServerSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package org.apache.spark
2020
import java.io._
2121
import java.net.URI
2222
import java.util.jar.{JarEntry, JarOutputStream}
23-
import javax.net.ssl.SSLHandshakeException
23+
import javax.net.ssl.SSLException
2424

2525
import com.google.common.io.ByteStreams
2626
import org.apache.commons.io.{FileUtils, IOUtils}
@@ -228,7 +228,7 @@ class FileServerSuite extends FunSuite with LocalSparkContext {
228228
try {
229229
server.initialize()
230230

231-
intercept[SSLHandshakeException] {
231+
intercept[SSLException] {
232232
fileTransferTest(server)
233233
}
234234
} finally {

0 commit comments

Comments
 (0)