From 4831eb49da62df72335a337916eff789ac74c0ab Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Thu, 7 Jun 2012 08:54:37 +0900 Subject: [PATCH] Fix a test failure in LocalChannelRegistryTest --- .../java/io/netty/channel/local/LocalChannelRegistryTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transport/src/test/java/io/netty/channel/local/LocalChannelRegistryTest.java b/transport/src/test/java/io/netty/channel/local/LocalChannelRegistryTest.java index 24856c8aff..64fb8a7d13 100644 --- a/transport/src/test/java/io/netty/channel/local/LocalChannelRegistryTest.java +++ b/transport/src/test/java/io/netty/channel/local/LocalChannelRegistryTest.java @@ -59,7 +59,7 @@ public class LocalChannelRegistryTest { // Start server - sb.bind().sync(); + Channel sc = sb.bind().sync().channel(); // Connect to the server Channel cc = cb.connect().sync().channel(); @@ -74,6 +74,8 @@ public class LocalChannelRegistryTest { sb.shutdown(); cb.shutdown(); + sc.closeFuture().sync(); + Assert.assertTrue(String.format( "Expected null, got channel '%s' for local address '%s'", LocalChannelRegistry.get(addr), addr),