File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Tests/AsyncHTTPClientTests Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ let package = Package(
2222 ] ,
2323 dependencies: [
2424 . package ( url: " https://github.com/apple/swift-nio.git " , from: " 2.27.0 " ) ,
25- . package ( url: " https://github.com/apple/swift-nio-ssl.git " , from: " 2.8 .0 " ) ,
25+ . package ( url: " https://github.com/apple/swift-nio-ssl.git " , from: " 2.12 .0 " ) ,
2626 . package ( url: " https://github.com/apple/swift-nio-extras.git " , from: " 1.3.0 " ) ,
2727 . package ( url: " https://github.com/apple/swift-nio-transport-services.git " , from: " 1.5.1 " ) ,
2828 . package ( url: " https://github.com/apple/swift-log.git " , from: " 1.4.0 " ) ,
Original file line number Diff line number Diff line change @@ -2711,7 +2711,10 @@ class HTTPClientTests: XCTestCase {
27112711 if isTestingNIOTS ( ) {
27122712 XCTAssertEqual ( error as? ChannelError , . connectTimeout( . milliseconds( 100 ) ) )
27132713 } else {
2714- XCTAssertEqual ( error as? NIOSSLError , NIOSSLError . uncleanShutdown)
2714+ switch error as? NIOSSLError {
2715+ case . some( . handshakeFailed( . sslError( _) ) ) : break
2716+ default : XCTFail ( " Handshake failed with unexpected error: \( String ( describing: error) ) " )
2717+ }
27152718 }
27162719 }
27172720 }
@@ -2755,7 +2758,10 @@ class HTTPClientTests: XCTestCase {
27552758 if isTestingNIOTS ( ) {
27562759 XCTAssertEqual ( error as? ChannelError , . connectTimeout( . milliseconds( 200 ) ) )
27572760 } else {
2758- XCTAssertEqual ( error as? NIOSSLError , NIOSSLError . uncleanShutdown)
2761+ switch error as? NIOSSLError {
2762+ case . some( . handshakeFailed( . sslError( _) ) ) : break
2763+ default : XCTFail ( " Handshake failed with unexpected error: \( String ( describing: error) ) " )
2764+ }
27592765 }
27602766 }
27612767 }
You can’t perform that action at this time.
0 commit comments