Skip to content

Commit 642dd88

Browse files
committed
Merge SparkUISuite.scala into UISuite.scala
1 parent eb30517 commit 642dd88

File tree

2 files changed

+14
-35
lines changed

2 files changed

+14
-35
lines changed

core/src/test/scala/org/apache/spark/SparkUISuite.scala

Lines changed: 0 additions & 35 deletions
This file was deleted.

core/src/test/scala/org/apache/spark/ui/UISuite.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,18 @@ class UISuite extends FunSuite {
125125
case Failure(e) =>
126126
}
127127
}
128+
129+
test("verify appUIAddress contains the scheme") {
130+
withSpark(new SparkContext("local", "test")) { sc =>
131+
val uiAddress = sc.ui.appUIAddress
132+
assert(uiAddress.equals("http://" + sc.ui.appUIHostPort))
133+
}
134+
}
135+
136+
test("verify appUIAddress contains the port") {
137+
withSpark(new SparkContext("local", "test")) { sc =>
138+
val splitUIAddress = sc.ui.appUIAddress.split(':')
139+
assert(splitUIAddress(2).toInt == sc.ui.boundPort)
140+
}
141+
}
128142
}

0 commit comments

Comments
 (0)