make HTTPServerClientTests more robust

This commit is contained in:
Johannes Weiss committed 2018-01-05 15:19:22 +00:00
1 parent 62b4acaedf
commit d2b671da66
3 files changed
+42 -31

No files matched your search

+1 -3
View File
@@ -173,7 +173,7 @@ public final class ChannelPipeline : ChannelInvoker {
assert(eventLoop.inEventLoop)
if destroyed {
promise.fail(error: ChannelPipelineError.alreadyClosed)
promise.fail(error: ChannelError.ioOnClosedChannel)
return
}
@@ -811,8 +811,6 @@ private final class TailChannelHandler : _ChannelInboundHandler {
public enum ChannelPipelineError : Error {
/// `ChannelHandler` was already removed.
case alreadyRemoved
/// `Channel` (that belonged to the `ChannelPipeline`) was already closed and so may be already destroyed.
case alreadyClosed
/// `ChannelHandler` was not found.
case notFound
}