You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2013/10/04 19:55:34 UTC
[47/50] git commit: Fixed UISuite,
for case when port 4040 is already bound on machine running the test.
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 <pr...@imaginea.com>
Authored: Thu Sep 26 14:38:42 2013 +0530
Committer: Prashant Sharma <pr...@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)