Skip to content

Commit 48ae86f

Browse files
committed
make the test case more generic
1 parent 519c329 commit 48ae86f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/test/scala/org/apache/spark/util/JsonProtocolSuite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class JsonProtocolSuite extends SparkFunSuite {
7373
BlockManagerId("Scarce", "to be counted...", 100))
7474
val unpersistRdd = SparkListenerUnpersistRDD(12345)
7575
val logUrlMap = Map("stderr" -> "mystderr", "stdout" -> "mystdout").toMap
76-
val workerUrlMap = Map("url" -> "spark://Worker@192.168.1.104:32790",
77-
"ui_url" -> "http://192.168.1.104:46445").toMap
76+
val workerUrlMap = Map("url" -> "spark://Worker@someHost:8080",
77+
"ui_url" -> "http://someHost:1234").toMap
7878
val applicationStart = SparkListenerApplicationStart("The winner of all", Some("appId"),
7979
42L, "Garfield", Some("appAttempt"))
8080
val applicationStartWithLogs = SparkListenerApplicationStart("The winner of all", Some("appId"),
@@ -1753,8 +1753,8 @@ private[spark] object JsonProtocolSuite extends Assertions {
17531753
| "stdout" : "mystdout"
17541754
| },
17551755
| "Worker" : {
1756-
| "url" : "spark://Worker@192.168.1.104:32790",
1757-
| "ui_url" : "http://192.168.1.104:46445"
1756+
| "url" : "spark://Worker@someHost:8080",
1757+
| "ui_url" : "http://someHost:1234"
17581758
| }
17591759
| }
17601760
|}

0 commit comments

Comments
 (0)