spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [47/50] git commit: Fixed UISuite, for case when port 4040 is already bound on machine running the test.
Date Fri, 04 Oct 2013 17:55:34 GMT
Fixed UISuite, for case when port 4040 is already bound on machine running the test.


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/42f30b55
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/42f30b55
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/42f30b55

Branch: refs/heads/scala-2.10
Commit: 42f30b5590b229b2f672e7dbc4485fbf58bfb999
Parents: 604dc40
Author: Prashant Sharma <prashant.s@imaginea.com>
Authored: Thu Sep 26 14:38:42 2013 +0530
Committer: Prashant Sharma <prashant.s@imaginea.com>
Committed: Thu Sep 26 14:38:42 2013 +0530

----------------------------------------------------------------------
 core/src/test/scala/org/apache/spark/ui/UISuite.scala | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/42f30b55/core/src/test/scala/org/apache/spark/ui/UISuite.scala
----------------------------------------------------------------------
diff --git a/core/src/test/scala/org/apache/spark/ui/UISuite.scala b/core/src/test/scala/org/apache/spark/ui/UISuite.scala
index 07c9f23..f4e1d4e 100644
--- a/core/src/test/scala/org/apache/spark/ui/UISuite.scala
+++ b/core/src/test/scala/org/apache/spark/ui/UISuite.scala
@@ -25,11 +25,8 @@ import org.eclipse.jetty.server.Server
 class UISuite extends FunSuite {
   test("jetty port increases under contention") {
     val startPort = 4040
-    val server = new Server(startPort)
-    server.start()
     val (jettyServer1, boundPort1) = JettyUtils.startJettyServer("localhost", startPort,
Seq())
     val (jettyServer2, boundPort2) = JettyUtils.startJettyServer("localhost", startPort,
Seq())
-
     // Allow some wiggle room in case ports on the machine are under contention
     assert(boundPort1 > startPort && boundPort1 < startPort + 10)
     assert(boundPort2 > boundPort1 && boundPort2 < boundPort1 + 10)


Mime
View raw message