Skip to content

Commit 56db31e

Browse files
committed
update tests for mulit-attempt
1 parent 7f3bc4e commit 56db31e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,11 @@ class UISeleniumSuite extends FunSuite with WebBrowser with Matchers with Before
563563
sc.ui.get.appUIAddress + "/json/v1/applications"))
564564
val appListJsonAst = JsonMethods.parse(appListRawJson)
565565
appListJsonAst.children.length should be (1)
566-
(appListJsonAst \ "completed").extract[Boolean] should be (false)
567-
parseDate(appListJsonAst \ "startTime") should be (sc.startTime)
568-
parseDate(appListJsonAst \ "endTime") should be (-1)
566+
val attempts = (appListJsonAst \ "attempts").children
567+
attempts.size should be (1)
568+
(attempts(0) \ "completed").extract[Boolean] should be (false)
569+
parseDate(attempts(0) \ "startTime") should be (sc.startTime)
570+
parseDate(attempts(0) \ "endTime") should be (-1)
569571
val oneAppJsonAst = getJson(sc.ui.get, "")
570572
oneAppJsonAst should be (appListJsonAst.children(0))
571573
}

0 commit comments

Comments
 (0)