Is there any way we can fix this timing error?

Gump Integration Build wrote:

test:
     [echo] Performing Unit Tests
    [mkdir] Created dir: /home/rubys/jakarta/avalon-excalibur/sourceresolve/build/tests
    [junit] Running org.apache.excalibur.source.test.SourceUtilTestCase
    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.672 sec
    [junit] Testsuite: org.apache.excalibur.source.test.SourceUtilTestCase
    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.672 sec

    [junit] Testcase: testNominalScheme took 0.038 sec
    [junit] Testcase: testDoubleColon took 0.001 sec
    [junit] Testcase: testSpecialScheme took 0.003 sec
    [junit] Testcase: testSpecialPart took 0 sec
    [junit] Testcase: testInvalidScheme took 0.001 sec
    [junit] Testcase: testAbsolutize took 0.04 sec
    [junit] Running org.apache.excalibur.source.test.FileSourceTestCase
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.597 sec
    [junit] Testsuite: org.apache.excalibur.source.test.FileSourceTestCase
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.597 sec

    [junit] Testcase: testDirExistence took 0.037 sec
    [junit]     FAILED
    [junit] Wrong creation date expected:<1055136078> but was:<1055136077>
    [junit] junit.framework.AssertionFailedError: Wrong creation date expected:<1055136078> 
but was:<1055136077>
    [junit]     at 
org.apache.excalibur.source.test.FileSourceTestCase.testDirExistence(FileSourceTestCase.java:107)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


This test fails if the creation time is off by even 1 ms. (10 on
Windows).  This needs to either be fixed by allowing a certain
amount of leeway (i.e. +/- 5 ms), or by removing the test.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to