ffang commented on code in PR #2919:
URL: https://github.com/apache/cxf/pull/2919#discussion_r2892683983


##########
systests/rs-sse/rs-sse-base/src/main/java/org/apache/cxf/systest/jaxrs/sse/AbstractSseTest.java:
##########
@@ -408,6 +415,47 @@ public void testBooksSseContainerResponseAddedHeaders() 
throws InterruptedExcept
             assertThat(response.getHeaderString("X-My-ProtocolHeader"), 
equalTo("protocol-headers"));
         }
     }
+    
+ 
+    private static String captureStdoutDuring(Callable<?> action) throws 
Exception {
+        PrintStream oldOut = System.out;
+        ByteArrayOutputStream baos = new ByteArrayOutputStream();
+        PrintStream ps = new PrintStream(baos, true, 
StandardCharsets.UTF_8.name());
+        System.setOut(ps);
+        try {
+            action.call();
+            // give async logger a moment *before restoring*
+            Thread.sleep(1000);

Review Comment:
   Hi @reta ,
   
   Good suggestion, addressed accordingly by 
https://github.com/apache/cxf/pull/2919/commits/463d33564a779129cbbcd93abe0fdbe5b8056fe4
   
   Thanks!
   Freeman



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to