Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 377B018BDD for ; Wed, 11 Nov 2015 15:55:27 +0000 (UTC) Received: (qmail 88611 invoked by uid 500); 11 Nov 2015 15:55:27 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 88476 invoked by uid 500); 11 Nov 2015 15:55:26 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 88457 invoked by uid 99); 11 Nov 2015 15:55:26 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2015 15:55:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AD1D5E0BBE; Wed, 11 Nov 2015 15:55:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dkulp@apache.org To: commits@cxf.apache.org Date: Wed, 11 Nov 2015 15:55:27 -0000 Message-Id: <062eef3d7dcb40069e4394d6e758280f@git.apache.org> In-Reply-To: <11eaae51fc0e433687822dfea5778fe2@git.apache.org> References: <11eaae51fc0e433687822dfea5778fe2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] cxf git commit: Flush/close during test in case the stream is buffering 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 Authored: Wed Nov 11 10:48:57 2015 -0500 Committer: Daniel Kulp 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(); }