Potential fix for failing timing tests

This commit is contained in:
Trustin Lee 2010-01-26 02:57:41 +00:00
parent 7b6fb53fc1
commit eeb4e8f7b1

View File

@ -62,7 +62,7 @@ public class NioServerSocketShutdownTimeTest {
Channel channel = bootstrap.bind(); Channel channel = bootstrap.bind();
long startTime = System.currentTimeMillis(); final long startTime;
Socket socket = null; Socket socket = null;
try { try {
@ -87,6 +87,8 @@ public class NioServerSocketShutdownTimeTest {
// Ignore. // Ignore.
} }
} }
startTime = System.currentTimeMillis();
channel.close().awaitUninterruptibly(); channel.close().awaitUninterruptibly();
bootstrap.getFactory().releaseExternalResources(); bootstrap.getFactory().releaseExternalResources();
} }