@@ -5,13 +5,13 @@ import NIOSSL
55import NIOEmbedded
66@testable import PostgresNIO
77
8- class PSQLChannelHandlerTests : XCTestCase {
8+ class PostgresChannelHandlerTests : XCTestCase {
99
1010 // MARK: Startup
1111
1212 func testHandlerAddedWithoutSSL( ) {
1313 let config = self . testConnectionConfiguration ( )
14- let handler = PSQLChannelHandler ( configuration: config, configureSSLCallback: nil )
14+ let handler = PostgresChannelHandler ( configuration: config, configureSSLCallback: nil )
1515 let embedded = EmbeddedChannel ( handlers: [
1616 ReverseByteToMessageHandler ( PSQLFrontendMessageDecoder ( ) ) ,
1717 ReverseMessageToByteHandler ( PSQLBackendMessageEncoder ( ) ) ,
@@ -40,7 +40,7 @@ class PSQLChannelHandlerTests: XCTestCase {
4040 var config = self . testConnectionConfiguration ( )
4141 XCTAssertNoThrow ( config. tls = . require( try NIOSSLContext ( configuration: . makeClientConfiguration( ) ) ) )
4242 var addSSLCallbackIsHit = false
43- let handler = PSQLChannelHandler ( configuration: config) { channel in
43+ let handler = PostgresChannelHandler ( configuration: config) { channel in
4444 addSSLCallbackIsHit = true
4545 }
4646 let embedded = EmbeddedChannel ( handlers: [
@@ -82,7 +82,7 @@ class PSQLChannelHandlerTests: XCTestCase {
8282 var config = self . testConnectionConfiguration ( )
8383 XCTAssertNoThrow ( config. tls = . require( try NIOSSLContext ( configuration: . makeClientConfiguration( ) ) ) )
8484
85- let handler = PSQLChannelHandler ( configuration: config) { channel in
85+ let handler = PostgresChannelHandler ( configuration: config) { channel in
8686 XCTFail ( " This callback should never be exectuded " )
8787 throw PSQLError . sslUnsupported
8888 }
@@ -118,7 +118,7 @@ class PSQLChannelHandlerTests: XCTestCase {
118118 database: config. authentication? . database
119119 )
120120 let state = ConnectionStateMachine ( . waitingToStartAuthentication)
121- let handler = PSQLChannelHandler ( configuration: config, state: state, configureSSLCallback: nil )
121+ let handler = PostgresChannelHandler ( configuration: config, state: state, configureSSLCallback: nil )
122122 let embedded = EmbeddedChannel ( handlers: [
123123 ReverseByteToMessageHandler ( PSQLFrontendMessageDecoder ( ) ) ,
124124 ReverseMessageToByteHandler ( PSQLBackendMessageEncoder ( ) ) ,
@@ -147,7 +147,7 @@ class PSQLChannelHandlerTests: XCTestCase {
147147 database: config. authentication? . database
148148 )
149149 let state = ConnectionStateMachine ( . waitingToStartAuthentication)
150- let handler = PSQLChannelHandler ( configuration: config, state: state, configureSSLCallback: nil )
150+ let handler = PostgresChannelHandler ( configuration: config, state: state, configureSSLCallback: nil )
151151 let embedded = EmbeddedChannel ( handlers: [
152152 ReverseByteToMessageHandler ( PSQLFrontendMessageDecoder ( ) ) ,
153153 ReverseMessageToByteHandler ( PSQLBackendMessageEncoder ( ) ) ,
0 commit comments