[ 
https://issues.apache.org/jira/browse/RATIS-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16494431#comment-16494431
 ] 

Tsz Wo Nicholas Sze commented on RATIS-247:
-------------------------------------------

I have manually verified theĀ JUnitRunListener by the test below.  It works 
well.  The thread dump can be found in the output.
{code}
@Test(timeout = 1)
public void testTimeout() throws Exception {
 Thread.sleep(1000);
}
{code}

> Add a JUnit RunListener to dump all threads when test timeout
> -------------------------------------------------------------
>
>                 Key: RATIS-247
>                 URL: https://issues.apache.org/jira/browse/RATIS-247
>             Project: Ratis
>          Issue Type: Test
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Minor
>         Attachments: r247_20180525.patch
>
>
> Some unit tests fail with timeout occasionally.  It would be great if it 
> dumps all threads when test timeout.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to