@@ -135,7 +135,7 @@ final class FluentPostgresDriverTests: XCTestCase {
135135
136136 let configuration = PostgresConfiguration (
137137 hostname: env ( " POSTGRES_HOSTNAME_A " ) ?? " localhost " ,
138- port: env ( " POSTGRES_PORT_A " ) . flatMap ( Int . init) ?? 5432 ,
138+ port: env ( " POSTGRES_PORT_A " ) . flatMap ( Int . init) ?? PostgresConfiguration . ianaPortNumber ,
139139 username: " vapor_username " ,
140140 password: " vapor_password " ,
141141 database: env ( " POSTGRES_DATABASE_A " ) ?? " vapor_database "
@@ -181,14 +181,14 @@ final class FluentPostgresDriverTests: XCTestCase {
181181
182182 let aConfig = PostgresConfiguration (
183183 hostname: env ( " POSTGRES_HOSTNAME_A " ) ?? " localhost " ,
184- port: env ( " POSTGRES_PORT_A " ) . flatMap ( Int . init) ?? 5432 ,
184+ port: env ( " POSTGRES_PORT_A " ) . flatMap ( Int . init) ?? PostgresConfiguration . ianaPortNumber ,
185185 username: env ( " POSTGRES_USERNAME_A " ) ?? " vapor_username " ,
186186 password: env ( " POSTGRES_PASSWORD_A " ) ?? " vapor_password " ,
187187 database: env ( " POSTGRES_DATABASE_A " ) ?? " vapor_database "
188188 )
189189 let bConfig = PostgresConfiguration (
190190 hostname: env ( " POSTGRES_HOSTNAME_B " ) ?? " localhost " ,
191- port: env ( " POSTGRES_PORT_B " ) . flatMap ( Int . init) ?? 5432 ,
191+ port: env ( " POSTGRES_PORT_B " ) . flatMap ( Int . init) ?? PostgresConfiguration . ianaPortNumber ,
192192 username: env ( " POSTGRES_USERNAME_B " ) ?? " vapor_username " ,
193193 password: env ( " POSTGRES_PASSWORD_B " ) ?? " vapor_password " ,
194194 database: env ( " POSTGRES_DATABASE_B " ) ?? " vapor_database "
0 commit comments