commit | 67f02aacb1c8123b13c374993f79b8fb6457f867 | [log] [tgz] |
---|---|---|
author | khfaraaz82@gmail.com <khfaraaz82@gmail.com@eaa15691-b419-025a-1212-ee371bd00084> | Thu Apr 04 00:31:47 2013 +0000 |
committer | khfaraaz82@gmail.com <khfaraaz82@gmail.com@eaa15691-b419-025a-1212-ee371bd00084> | Thu Apr 04 00:31:47 2013 +0000 |
tree | fd0ea610f2212e1617eb5c30018551ae0dd448ed | |
parent | 40b41b9c1bb6644490036e83fe2ab584b7a6d80f [diff] |
Tests should fail when there are more records in expected file than returned. git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_lsm_stabilization@1474 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-app/src/test/java/edu/uci/ics/asterix/test/aql/TestsUtils.java b/asterix-app/src/test/java/edu/uci/ics/asterix/test/aql/TestsUtils.java index 2602707..2a16f2c 100644 --- a/asterix-app/src/test/java/edu/uci/ics/asterix/test/aql/TestsUtils.java +++ b/asterix-app/src/test/java/edu/uci/ics/asterix/test/aql/TestsUtils.java
@@ -51,6 +51,7 @@ int num = 0; int chunkCounter = 0; int recordCounter = 0; + try { while ((lineExpected = readerExpected.readLine()) != null) { @@ -73,15 +74,8 @@ if (recordCounter >= resultArray.length()) { chunkCounter++; recordCounter = 0; - if (chunkCounter >= jArray.length()) { - break; - } } } - - while ((lineExpected = readerExpected.readLine()) != null) { - // TODO(khurram): Print out the remaining expected file contents - } } finally { readerExpected.close(); }