Permalink
Browse files

Move another assert after check

  • Loading branch information...
jarulraj committed May 7, 2014
1 parent 02b96b6 commit 303201db6c0eb1b3944524b2560eede23dc4242a
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/frontend/org/voltdb/regressionsuites/TestSQLFeaturesSuite.java
@@ -105,15 +105,16 @@ public void testQueryOrder() throws Exception {
assertEquals(cr.toString(), Status.OK, cr.getStatus());
assertEquals(cr.toString(), 1, cr.getResults().length);
try {
if(cr.getResults()[0].getRowCount() != 0)
if(cr.getResults()[0].getRowCount() != 0){
assertTrue(cr.toString(), cr.getResults()[0].advanceRow());
assertEquals(itemName, cr.getResults()[0].getString(0));
}
} catch (Throwable ex) {
System.err.printf("TARGET: %d/%s\n", itemId, itemName);
cr = RegressionSuiteUtil.sql(client, "SELECT * FROM " + TPCCConstants.TABLENAME_ITEM);
System.err.println(VoltTableUtil.format(cr.getResults()));
throw new Exception(ex);
}
assertEquals(itemName, cr.getResults()[0].getString(0));
}
}
public void testUpdates() throws IOException {

0 comments on commit 303201d

Please sign in to comment.