|
@@ -89,6 +89,13 @@ public class TestQueueProcessingStatistics extends junit.framework.TestCase {
|
|
|
//Asserts based on general principles
|
|
|
assertTrue(failMsg(), qStats.startTime >= 0);
|
|
|
if (qStats.state != State.BEGIN_COLLECTING) {
|
|
|
+ /* The following timing calculations don't work in many
|
|
|
+ * automated test environments (e.g., on heavily loaded servers with
|
|
|
+ * very unreliable "sleep()" durations), but are useful during
|
|
|
+ * development work. Commenting them out but leaving them here
|
|
|
+ * for dev use.
|
|
|
+ */
|
|
|
+ /*
|
|
|
assertAlmostEquals(failMsg() + " inCycle=" + inCycle,
|
|
|
qStats.startTimeCurrentCycle,
|
|
|
qStats.startTime
|
|
@@ -100,6 +107,7 @@ public class TestQueueProcessingStatistics extends junit.framework.TestCase {
|
|
|
qStats.clockDuration,
|
|
|
qStats.processDuration
|
|
|
+ cycleDelay * (qStats.cycleCount - (qStats.cycleCount > 0 ? 1 : 0)));
|
|
|
+ */
|
|
|
}
|
|
|
assertTrue(failMsg(), qStats.workItemCount >= 0);
|
|
|
assertTrue(failMsg(), qStats.cycleCount >= 0);
|