File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
core/src/test/scala/org/apache/spark/ui Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments