[ 
https://issues.apache.org/jira/browse/GEODE-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14702144#comment-14702144
 ] 

Darrel Schneider commented on GEODE-228:
----------------------------------------

NanoTimer2JUnitTest is old and has been replaced by NanoTimerJUnitTest.
So I'm going to remove NanoTimer2JUnitTest.
NanoTimerJUnitTest has races in it that will cause it to fail.
I'm going to get rid of those by having the unit test use a clock that the test 
controls
instead of the system clock.


> NanoTimer2JUnitTest testReset can fail due to race conditions
> -------------------------------------------------------------
>
>                 Key: GEODE-228
>                 URL: https://issues.apache.org/jira/browse/GEODE-228
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Minor
>
> NanoTimer2JUnitTest can intermittently. The test is dependent and the system 
> clock and the jvm not having any unexpected pauses.
> Here is a recent failure from the nightly build: 
> https://builds.apache.org/job/Geode-nightly/188/testReport/junit/com.gemstone.gemfire.internal/NanoTimer2JUnitTest/testReset/
> junit.framework.AssertionFailedError: create time expected to be in the range 
> [-19899..19899] but was:<20551>
>       at junit.framework.Assert.fail(Assert.java:57)
>       at junit.framework.TestCase.fail(TestCase.java:227)
>       at 
> com.gemstone.gemfire.internal.NanoTimer2JUnitTest.assertApproximate(NanoTimer2JUnitTest.java:74)
>       at 
> com.gemstone.gemfire.internal.NanoTimer2JUnitTest.testReset(NanoTimer2JUnitTest.java:60)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to