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();
|
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user