Github user sarutak commented on a diff in the pull request:
https://github.com/apache/spark/pull/10663#discussion_r49734793
--- Diff: core/src/test/scala/org/apache/spark/ui/UIUtilsSuite.scala ---
@@ -67,6 +67,20 @@ class UIUtilsSuite extends SparkFunSuite {
s"\nRunning progress bar should round
down\n\nExpected:\n$expected\nGenerated:\n$generated")
}
+ test("decodeURLParameter (SPARK-12708: Sorting task error in Stages Page
when yarn mode.)") {
+ val encoded1 = "%252F"
+ val decoded1 = "/"
+ val encoded2 = "%253Cdriver%253E"
+ val decoded2 = "<driver>"
+
+ assert(decoded1.sameElements(decodeURLParameter(encoded1)))
+ assert(decoded2.sameElements(decodeURLParameter(encoded2)))
--- End diff --
Why don't you just compare by `===` instead of `sameElements`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]