dain 2003/12/11 14:11:47
Modified: modules/common/src/test/org/apache/geronimo/common
StopWatchTest.java
Log:
Commented out bad test testTwoStops which uses sleep for force time to
elapse, but
sleep is not accurate on most systems
Revision Changes Path
1.3 +3 -1
incubator-geronimo/modules/common/src/test/org/apache/geronimo/common/StopWatchTest.java
Index: StopWatchTest.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/common/src/test/org/apache/geronimo/common/StopWatchTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- StopWatchTest.java 8 Dec 2003 01:00:36 -0000 1.2
+++ StopWatchTest.java 11 Dec 2003 22:11:47 -0000 1.3
@@ -115,6 +115,7 @@
assertEquals(sw.getLapTime(), sw.getAverageLapTime());
}
+ /* BAD TEST: sleep is not an accurate measure of time
public void testTwoStops() {
StopWatch sw = new StopWatch();
@@ -134,6 +135,7 @@
assertTrue(sw.getTime() >= 1000L);
assertEquals(sw.getLapTime(), sw.getAverageLapTime());
}
+ */
public void testTwoLaps() {
StopWatch sw = new StopWatch();