Skip to content

Commit

Permalink
Updated to use the new StateHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
btoms20 committed Jul 9, 2023
1 parent e6d4aa4 commit 62ba0f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/QuicTests/NIOTests/TLSTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class TLSClientInitialTests: XCTestCase {
let version: Version = .version2
var dcid: ConnectionID!
var scid: ConnectionID!
fileprivate var quicClientHandler: QUICClientHandler!
fileprivate var quicClientHandler: QUICStateHandler!
fileprivate var errorHandler: ErrorEventLogger!
fileprivate var quiesceEventRecorder: QuiesceEventRecorder!

Expand All @@ -44,7 +44,8 @@ final class TLSClientInitialTests: XCTestCase {
let sslContext = try! NIOSSLContext(configuration: configuration)

self.channel = EmbeddedChannel()
self.quicClientHandler = try! QUICClientHandler(SocketAddress(ipAddress: "127.0.0.1", port: 0), versions: [self.version], destinationID: self.dcid, sourceID: self.scid, tlsContext: sslContext)
self.quicClientHandler = try! QUICStateHandler(SocketAddress(ipAddress: "127.0.0.1", port: 0), perspective: .client, versions: [self.version], destinationID: self.dcid, sourceID: self.scid, tlsContext: sslContext, idleTimeout: .zero)

self.quiesceEventRecorder = QuiesceEventRecorder()
self.errorHandler = ErrorEventLogger()
XCTAssertNoThrow(try self.channel.pipeline.addHandler(self.quicClientHandler).wait())
Expand Down

0 comments on commit 62ba0f4

Please sign in to comment.