cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/2] cxf git commit: Flush/close during test in case the stream is buffering
Date Wed, 11 Nov 2015 15:55:27 GMT
Flush/close during test in case the stream is buffering


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2feaf196
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2feaf196
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2feaf196

Branch: refs/heads/master
Commit: 2feaf196038235aa06066f8d7015f90250e28938
Parents: efed915
Author: Daniel Kulp <dkulp@apache.org>
Authored: Wed Nov 11 10:48:57 2015 -0500
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Nov 11 10:48:57 2015 -0500

----------------------------------------------------------------------
 .../org/apache/cxf/systest/jaxrs/websocket/BookStoreWebSocket.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/2feaf196/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/BookStoreWebSocket.java
----------------------------------------------------------------------
diff --git a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/BookStoreWebSocket.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/BookStoreWebSocket.java
index bc38f43..39e64fc 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/BookStoreWebSocket.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/websocket/BookStoreWebSocket.java
@@ -96,7 +96,9 @@ public class BookStoreWebSocket {
                             for (int r = 2, i = 1; i <= 5; r *= 2, i++) {
                                 Thread.sleep(500);
                                 out.write(Integer.toString(r).getBytes());
+                                out.flush();
                             }
+                            out.close();
                         } catch (Exception e) {
                             e.printStackTrace();
                         }


Mime
View raw message