You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2007/08/16 00:56:05 UTC
svn commit: r566380 -
/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/NtpITest.java
Author: erodriguez
Date: Wed Aug 15 15:56:04 2007
New Revision: 566380
URL: http://svn.apache.org/viewvc?view=rev&rev=566380
Log:
Modified NTP integration test to use proper InetAddress static method to retrieve loopback address.
Modified:
directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/NtpITest.java
Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/NtpITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/NtpITest.java?view=diff&rev=566380&r1=566379&r2=566380
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/NtpITest.java (original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/NtpITest.java Wed Aug 15 15:56:04 2007
@@ -117,12 +117,14 @@
/**
* Tests to make sure NTP works when enabled in the server.
+ *
+ * @throws Exception
*/
public void testNtp() throws Exception
{
long currentTime = System.currentTimeMillis();
- InetAddress host = InetAddress.getLocalHost();
+ InetAddress host = InetAddress.getByName( null );
NTPUDPClient ntp = new NTPUDPClient();
ntp.setDefaultTimeout( 5000 );