Skip to content

Commit

Permalink
Fixed a faulty condition.
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@113 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Aug 21, 2008
1 parent edbb9f4 commit bfe29fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions testsrc/org/olap4j/ConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ public void run() {
fail("expected exception indicating stmt had been canceled,"
+ " got cellSet " + cellSet);
} catch (OlapException e) {
assertTrue(e.getMessage().indexOf("The statement execution was canceled") >= 0);
assertTrue(e.getMessage().indexOf("canceled") >= 0);
}
if (exceptions[0] != null) {
throw exceptions[0];
Expand All @@ -1803,8 +1803,7 @@ public void testStatementTimeout() throws Throwable {
olapStatement.setQueryTimeout(-1);
fail("expected exception");
} catch (SQLException e) {
assertTrue(e.getMessage().indexOf("The timeout value you provided") >= 0
&& e.getMessage().indexOf("is not valid. It needs to be a positive non-zero integer") >= 0);
assertTrue(e.getMessage().indexOf("timeout") >= 0);
}
olapStatement.setQueryTimeout(1);
try {
Expand Down

0 comments on commit bfe29fc

Please sign in to comment.