isaki commented on a change in pull request #304:
URL: https://github.com/apache/maven-surefire/pull/304#discussion_r450305671



##########
File path: 
surefire-booter/src/main/java/org/apache/maven/surefire/booter/spi/LegacyMasterProcessChannelEncoder.java
##########
@@ -334,6 +333,14 @@ private void encodeAndPrintEvent( StringBuilder event, 
boolean sendImmediately )
                     .dumpException( e );
             }
         }
+        finally
+        {
+            // SUREFIRE-1815: We need to restore the interrupted state.

Review comment:
       Done.

##########
File path: 
surefire-booter/src/test/java/org/apache/maven/surefire/booter/spi/LegacyMasterProcessChannelEncoderTest.java
##########
@@ -1090,6 +1090,36 @@ public void shouldHandleExitWithTrimmedTrace() throws 
IOException
                 .startsWith( 
":maven-surefire-event:jvm-exit-error:UTF-8:MQ==:Mg==:NA==:" );
     }
 
+    @Test
+    public void testInterruptHandling() throws IOException
+    {
+        // SUREFIRE-1815

Review comment:
       Done




----------------------------------------------------------------
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.

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


Reply via email to