Skip to content

Commit

Permalink
Fix test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Mar 12, 2014
1 parent d801d11 commit ac69ec8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/test/scala/org/apache/spark/ui/UISuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class UISuite extends FunSuite {
}

test("jetty binds to port 0 correctly") {
val (jettyServer, boundPort) = JettyUtils.startJettyServer("0.0.0.0", 0, Seq(), new SparkConf)
val (jettyServer, boundPort, _) = JettyUtils.startJettyServer(
"0.0.0.0", 0, Seq[ServletContextHandler](), new SparkConf)
assert(jettyServer.getState === "STARTED")
assert(boundPort != 0)
Try {new ServerSocket(boundPort)} match {
Expand Down

0 comments on commit ac69ec8

Please sign in to comment.