hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1141505 - /httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/AsyncHttpTestBase.java
Date Thu, 30 Jun 2011 12:23:30 GMT
Author: olegk
Date: Thu Jun 30 12:23:30 2011
New Revision: 1141505

URL: http://svn.apache.org/viewvc?rev=1141505&view=rev
Log:
Incorrect client / server shutdown sequence was causing I/O exceptions in protocol tests

Modified:
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/AsyncHttpTestBase.java

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/AsyncHttpTestBase.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/AsyncHttpTestBase.java?rev=1141505&r1=1141504&r2=1141505&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/AsyncHttpTestBase.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/localserver/AsyncHttpTestBase.java
Thu Jun 30 12:23:30 2011
@@ -86,14 +86,6 @@ public abstract class AsyncHttpTestBase 
     }
 
     @After
-    public void stopServer() throws Exception {
-        if (this.localServer != null) {
-            this.localServer.stop();
-            this.localServer = null;
-        }
-    }
-
-    @After
     public void stopClient() throws Exception {
         if (this.httpclient != null) {
             this.httpclient.shutdown();
@@ -104,4 +96,12 @@ public abstract class AsyncHttpTestBase 
         }
     }
 
+    @After
+    public void stopServer() throws Exception {
+        if (this.localServer != null) {
+            this.localServer.stop();
+            this.localServer = null;
+        }
+    }
+
 }



Mime
View raw message