[
https://issues.apache.org/jira/browse/LENS-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jaideep Dhok updated LENS-87:
-----------------------------
Attachment: lens-87-1.patch
Change -
driver.cancelQuery returns a boolean which is true if the query was indeed
cancelled. The test now checks for the returned boolean and verifies the status
accordingly.
> TestJdbcDriver.testCancelQuery fails sometimes
> ----------------------------------------------
>
> Key: LENS-87
> URL: https://issues.apache.org/jira/browse/LENS-87
> Project: Apache Lens
> Issue Type: Bug
> Components: driver-jdbc
> Reporter: Amareshwari Sriramadasu
> Attachments: lens-87-1.patch
>
>
> Here is a failure I observed :
> {noformat}
> testCancelQuery(org.apache.lens.driver.jdbc.TestJdbcDriver) Time elapsed:
> 1.063 sec <<< FAILURE!
> java.lang.AssertionError: expected [CANCELED] but found [SUCCESSFUL]
> at org.testng.Assert.fail(Assert.java:94)
> at org.testng.Assert.failNotEquals(Assert.java:494)
> at org.testng.Assert.assertEquals(Assert.java:123)
> at org.testng.Assert.assertEquals(Assert.java:165)
> at
> org.apache.lens.driver.jdbc.TestJdbcDriver.testCancelQuery(TestJdbcDriver.java:483)
> Results :
> Failed tests:
> TestJdbcDriver.testCancelQuery:483 expected [CANCELED] but found
> [SUCCESSFUL]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)