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 cd37845 commit b6a96a8Copy full SHA for b6a96a8
core/src/test/scala/org/apache/spark/deploy/history/HistoryServerSuite.scala
@@ -87,7 +87,12 @@ class HistoryServerSuite extends FunSuite with BeforeAndAfter with Matchers {
87
errOpt should be (None)
88
val json = jsonOpt.get
89
val exp = IOUtils.toString(new FileInputStream(new File(expRoot, path + "/json_expectation")))
90
- json should be (exp)
+ //compare the ASTs so formatting differences don't cause failures
91
+ import org.json4s._
92
+ import org.json4s.jackson.JsonMethods._
93
+ val jsonAst = parse(json)
94
+ val expAst = parse(exp)
95
+ jsonAst should be (expAst)
96
}
97
98
0 commit comments