Skip to content

Commit

Permalink
use an asynchronous ExecutorService in SSLServerSocketAppenderBaseTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ceharris committed May 1, 2013
1 parent 6e81e1e commit 92a7645
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -15,6 +15,8 @@

import static org.junit.Assert.assertNotNull;

import java.util.concurrent.Executors;

import org.junit.Before;
import org.junit.Test;

Expand All @@ -28,7 +30,8 @@
*/
public class SSLServerSocketAppenderBaseTest {

private MockContext context = new MockContext();
private MockContext context = new MockContext(Executors.newCachedThreadPool());

private SSLServerSocketAppenderBase appender =
new InstrumentedSSLServerSocketAppenderBase();

Expand Down

2 comments on commit 92a7645

@ceharris
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Forgot to push this earlier)... should resolve the hang.

@ceki
Copy link
Member

@ceki ceki commented on 92a7645 May 1, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, it does resolve the hang.

Please sign in to comment.