Emmanuel Lecharny wrote:
> On 6/6/10 8:01 PM, Stefan Seelmann wrote:
>>
>>>
>>> @@ -74,6 +75,7 @@ public class NtpITest
>>> * @throws Exception if there are errors
>>> */
>>> @Test
>>> + @Ignore
>>> public void testNtp() throws Exception
>>> {
>>> InetAddress host = InetAddress.getByName( null );
>>>
>>>
>> Is this intended? I though I fixed this test yesterday, is it still
>> failing?
>>
> No, sorry, it was caught in a big commit I did. I will revert it
> immediately.
>
> Btw, what was the problem ?--
The test asserted two things:
- the delay is in range 0..1000 ms, both bounds excluded. But the delay
could be 0, especially when getting the time from localhost without any
network roundtrip. So I included the 0 as valid value.
- the offset is in range 0..1000 ms, both bounds excluded. But the
offset can be negative. Now the test checks that offset is in range
-1000..1000 ms.
Kind Regards,
Stefan