Skip to content

Commit

Permalink
[SPARK-6585][Tests]Fix FileServerSuite testcase in some Env.
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
sisihj authored and srowen committed Mar 29, 2015
1 parent 52ece26 commit 0e2753f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/test/scala/org/apache/spark/FileServerSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package org.apache.spark
import java.io._
import java.net.URI
import java.util.jar.{JarEntry, JarOutputStream}
import javax.net.ssl.SSLHandshakeException
import javax.net.ssl.SSLException

import com.google.common.io.ByteStreams
import org.apache.commons.io.{FileUtils, IOUtils}
Expand Down Expand Up @@ -228,7 +228,7 @@ class FileServerSuite extends FunSuite with LocalSparkContext {
try {
server.initialize()

intercept[SSLHandshakeException] {
intercept[SSLException] {
fileTransferTest(server)
}
} finally {
Expand Down

0 comments on commit 0e2753f

Please sign in to comment.