aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrashant Sharma <prashant.s@imaginea.com>2013-09-26 14:38:42 +0530
committerPrashant Sharma <prashant.s@imaginea.com>2013-09-26 14:38:42 +0530
commit42f30b5590b229b2f672e7dbc4485fbf58bfb999 (patch)
tree575dd4048aa84c2e243dc867be13d0e34b820193
parent604dc409969923d1e175e2d77fb0ddcac09c9d31 (diff)
downloadspark-42f30b5590b229b2f672e7dbc4485fbf58bfb999.tar.gz
spark-42f30b5590b229b2f672e7dbc4485fbf58bfb999.tar.bz2
spark-42f30b5590b229b2f672e7dbc4485fbf58bfb999.zip
Fixed UISuite, for case when port 4040 is already bound on machine running the test.
-rw-r--r--core/src/test/scala/org/apache/spark/ui/UISuite.scala3
1 files changed, 0 insertions, 3 deletions
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 07c9f2382b..f4e1d4e802 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)