Skip to content

Commit 8511141

Browse files
author
Andrew Or
committed
Fix test
1 parent 654883d commit 8511141

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/scala/org/apache/spark/util/JsonProtocol.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ private[spark] object JsonProtocol {
584584
}
585585

586586
def logStartFromJson(json: JValue): SparkListenerLogStart = {
587-
val version = (json \ "Spark Version").extract[String]
588-
SparkListenerLogStart(version)
587+
val sparkVersion = (json \ "Spark Version").extract[String]
588+
SparkListenerLogStart(sparkVersion)
589589
}
590590

591591
/** --------------------------------------------------------------------- *

core/src/test/scala/org/apache/spark/deploy/history/FsHistoryProviderSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class FsHistoryProviderSuite extends FunSuite with BeforeAndAfter with Matchers
6262
val newAppComplete = newLogFile("new1", inProgress = false)
6363
writeFile(newAppComplete, true, None,
6464
SparkListenerApplicationStart("new-app-complete", None, 1L, "test"),
65-
SparkListenerApplicationEnd(4L)
65+
SparkListenerApplicationEnd(5L)
6666
)
6767

6868
// Write a new-style application log.
@@ -108,7 +108,7 @@ class FsHistoryProviderSuite extends FunSuite with BeforeAndAfter with Matchers
108108
list.size should be (5)
109109
list.count(_.completed) should be (3)
110110

111-
list(0) should be (ApplicationHistoryInfo(newAppComplete.getName(), "new-app-complete", 1L, 4L,
111+
list(0) should be (ApplicationHistoryInfo(newAppComplete.getName(), "new-app-complete", 1L, 5L,
112112
newAppComplete.lastModified(), "test", true))
113113
list(1) should be (ApplicationHistoryInfo(newAppCompressedComplete.getName(),
114114
"new-app-compressed-complete", 1L, 4L, newAppCompressedComplete.lastModified(), "test", true))

0 commit comments

Comments
 (0)