Author: rareddy
Date: 2012-01-05 16:59:14 -0500 (Thu, 05 Jan 2012)
New Revision: 3778
Modified:
trunk/engine/src/test/java/org/teiid/dqp/internal/process/TestDQPCore.java
Log:
TEIID-1884: fixing the unit test by avoiding the in-process thread during the row count.
Modified: trunk/engine/src/test/java/org/teiid/dqp/internal/process/TestDQPCore.java
===================================================================
--- trunk/engine/src/test/java/org/teiid/dqp/internal/process/TestDQPCore.java 2012-01-05
20:23:26 UTC (rev 3777)
+++ trunk/engine/src/test/java/org/teiid/dqp/internal/process/TestDQPCore.java 2012-01-05
21:59:14 UTC (rev 3778)
@@ -355,6 +355,7 @@
assertNull(rm.getException());
assertEquals(10, rm.getResultsList().size());
RequestWorkItem item =
core.getRequestWorkItem(DQPWorkContext.getWorkContext().getRequestID(reqMsg.getExecutionId()));
+ while(item.isProcessing());
assertEquals(10, item.resultsBuffer.getRowCount());
}
Show replies by date