mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
make HTTPServerClientTests more robust
This commit is contained in:
1 parent
62b4acaedf
commit
d2b671da66
3 files changed
+42
-31
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user