ARTEMIS-388 fixing testsuite
(the socket.bind not being closed was preventing other tests to run successfully)
This commit is contained in:
parent
5399717176
commit
ece5d81e3d
|
@ -37,6 +37,7 @@ public class ActivationFailureListenerTest extends ActiveMQTestBase {
|
||||||
@Test
|
@Test
|
||||||
public void simpleTest() throws Exception {
|
public void simpleTest() throws Exception {
|
||||||
Socket s = new Socket();
|
Socket s = new Socket();
|
||||||
|
try {
|
||||||
s.bind(new InetSocketAddress("127.0.0.1", 61616));
|
s.bind(new InetSocketAddress("127.0.0.1", 61616));
|
||||||
server = createServer(false, createDefaultNettyConfig());
|
server = createServer(false, createDefaultNettyConfig());
|
||||||
final CountDownLatch latch = new CountDownLatch(1);
|
final CountDownLatch latch = new CountDownLatch(1);
|
||||||
|
@ -49,4 +50,8 @@ public class ActivationFailureListenerTest extends ActiveMQTestBase {
|
||||||
server.start();
|
server.start();
|
||||||
assertTrue(latch.await(3000, TimeUnit.MILLISECONDS));
|
assertTrue(latch.await(3000, TimeUnit.MILLISECONDS));
|
||||||
}
|
}
|
||||||
|
finally {
|
||||||
|
s.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue