Skip to content

Commit 05e570d

Browse files
fabianfettLukasa
andauthored
Add MockTools for testing HTTP1ConnectionPool.StateMachine (#417)
Co-authored-by: Cory Benfield <[email protected]>
1 parent 4068ee5 commit 05e570d

File tree

3 files changed

+645
-2
lines changed

3 files changed

+645
-2
lines changed

Diff for: Sources/AsyncHTTPClient/ConnectionPool/State Machine/HTTPConnectionPool+HTTP1Connections.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ extension HTTPConnectionPool {
8080

8181
var idleSince: NIODeadline? {
8282
switch self.state {
83-
case .idle(_, since: let lastReturn):
84-
return lastReturn
83+
case .idle(_, since: let idleSince):
84+
return idleSince
8585
case .backingOff, .starting, .leased, .closed:
8686
return nil
8787
}

0 commit comments

Comments
 (0)