directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r566380 - /directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/NtpITest.java
Date Wed, 15 Aug 2007 22:56:05 GMT
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 );



Mime
View raw message