We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb30517 commit 642dd88Copy full SHA for 642dd88
core/src/test/scala/org/apache/spark/SparkUISuite.scala
core/src/test/scala/org/apache/spark/ui/UISuite.scala
@@ -125,4 +125,18 @@ class UISuite extends FunSuite {
125
case Failure(e) =>
126
}
127
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
138
+ val splitUIAddress = sc.ui.appUIAddress.split(':')
139
+ assert(splitUIAddress(2).toInt == sc.ui.boundPort)
140
141
142
0 commit comments