Skip to content

Commit

Permalink
Merge SparkUISuite.scala into UISuite.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Apr 12, 2014
1 parent eb30517 commit 642dd88
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 35 deletions.
35 changes: 0 additions & 35 deletions core/src/test/scala/org/apache/spark/SparkUISuite.scala

This file was deleted.

14 changes: 14 additions & 0 deletions core/src/test/scala/org/apache/spark/ui/UISuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,18 @@ class UISuite extends FunSuite {
case Failure(e) =>
}
}

test("verify appUIAddress contains the scheme") {
withSpark(new SparkContext("local", "test")) { sc =>
val uiAddress = sc.ui.appUIAddress
assert(uiAddress.equals("http://" + sc.ui.appUIHostPort))
}
}

test("verify appUIAddress contains the port") {
withSpark(new SparkContext("local", "test")) { sc =>
val splitUIAddress = sc.ui.appUIAddress.split(':')
assert(splitUIAddress(2).toInt == sc.ui.boundPort)
}
}
}

0 comments on commit 642dd88

Please sign in to comment.