Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[SPARK-29571][SQL][TESTS][FOLLOWUP]Fix UT in AllExecutionsPageSuite c…
…lass

 ###What changes were proposed in this pull request?
 This is a follow-up of #24052 to correct assert condition.

 ###Why are the changes needed?
 To test IllegalArgumentException condition..

 ###Does this PR introduce any user-facing change?
 No.

 ###How was this patch tested?
 Manual Test (during fixing of SPARK-29453 find this issue)

Author: 07ARB <[email protected]>
  • Loading branch information
07ARB committed Oct 23, 2019
commit cce2fccc825d64a0d6302b9eeab387671a9c1336
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class AllExecutionsPageSuite extends SharedSparkSession with BeforeAndAfter {
map.put("failed.sort", Array("duration"))
when(request.getParameterMap()).thenReturn(map)
val html = renderSQLPage(request, tab, statusStore).toString().toLowerCase(Locale.ROOT)
assert(!html.contains("IllegalArgumentException"))
assert(!html.contains("illegalargumentexception"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, how come the tests passed before, @07ARB?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the problem was that the assertion effectively doesn't verify anything - finding upper&lower string from lowercased string.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right, I misread :-).

assert(html.contains("duration"))
}

Expand Down