Potential fix for failing timing tests
This commit is contained in:
parent
7b6fb53fc1
commit
eeb4e8f7b1
@ -62,7 +62,7 @@ public class NioServerSocketShutdownTimeTest {
|
||||
|
||||
Channel channel = bootstrap.bind();
|
||||
|
||||
long startTime = System.currentTimeMillis();
|
||||
final long startTime;
|
||||
|
||||
Socket socket = null;
|
||||
try {
|
||||
@ -87,6 +87,8 @@ public class NioServerSocketShutdownTimeTest {
|
||||
// Ignore.
|
||||
}
|
||||
}
|
||||
|
||||
startTime = System.currentTimeMillis();
|
||||
channel.close().awaitUninterruptibly();
|
||||
bootstrap.getFactory().releaseExternalResources();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user