@@ -141,7 +141,7 @@ final class FluentPostgresDriverTests: XCTestCase {
141141 let db = self . dbs. database (
142142 . iso8601,
143143 logger: . init( label: " test " ) ,
144- on: self . eventLoopGroup. next ( )
144+ on: self . eventLoopGroup. any ( )
145145 ) !
146146
147147 let date = Date ( )
@@ -200,11 +200,11 @@ final class FluentPostgresDriverTests: XCTestCase {
200200 self . dbs. use ( . testPostgres( subconfig: " A " ) , as: . a)
201201 self . dbs. use ( . testPostgres( subconfig: " B " ) , as: . b)
202202
203- let a = self . dbs. database ( . a, logger: Logger ( label: " test.fluent.a " ) , on: self . eventLoopGroup. next ( ) )
203+ let a = self . dbs. database ( . a, logger: Logger ( label: " test.fluent.a " ) , on: self . eventLoopGroup. any ( ) )
204204 _ = try ( a as! PostgresDatabase ) . query ( " drop schema public cascade " ) . wait ( )
205205 _ = try ( a as! PostgresDatabase ) . query ( " create schema public " ) . wait ( )
206206
207- let b = self . dbs. database ( . b, logger: Logger ( label: " test.fluent.b " ) , on: self . eventLoopGroup. next ( ) )
207+ let b = self . dbs. database ( . b, logger: Logger ( label: " test.fluent.b " ) , on: self . eventLoopGroup. any ( ) )
208208 _ = try ( b as! PostgresDatabase ) . query ( " drop schema public cascade " ) . wait ( )
209209 _ = try ( b as! PostgresDatabase ) . query ( " create schema public " ) . wait ( )
210210 }
@@ -225,9 +225,9 @@ extension DatabaseConfigurationFactory {
225225 let baseSubconfig = PostgresConfiguration (
226226 hostname: env ( " POSTGRES_HOSTNAME_ \( subconfig) " ) ?? " localhost " ,
227227 port: env ( " POSTGRES_PORT_ \( subconfig) " ) . flatMap ( Int . init) ?? PostgresConfiguration . ianaPortNumber,
228- username: env ( " POSTGRES_USER_ \( subconfig) " ) ?? " vapor_username " ,
229- password: env ( " POSTGRES_PASSWORD_ \( subconfig) " ) ?? " vapor_password " ,
230- database: env ( " POSTGRES_DB_ \( subconfig) " ) ?? " vapor_database "
228+ username: env ( " POSTGRES_USER_ \( subconfig) " ) ?? " test_username " ,
229+ password: env ( " POSTGRES_PASSWORD_ \( subconfig) " ) ?? " test_password " ,
230+ database: env ( " POSTGRES_DB_ \( subconfig) " ) ?? " test_database "
231231 )
232232
233233 return . postgres( configuration: baseSubconfig, connectionPoolTimeout: . seconds( 30 ) , encoder: encoder, decoder: decoder)
0 commit comments