@@ -141,7 +141,7 @@ final class FluentPostgresDriverTests: XCTestCase {
141
141
let db = self . dbs. database (
142
142
. iso8601,
143
143
logger: . init( label: " test " ) ,
144
- on: self . eventLoopGroup. next ( )
144
+ on: self . eventLoopGroup. any ( )
145
145
) !
146
146
147
147
let date = Date ( )
@@ -200,11 +200,11 @@ final class FluentPostgresDriverTests: XCTestCase {
200
200
self . dbs. use ( . testPostgres( subconfig: " A " ) , as: . a)
201
201
self . dbs. use ( . testPostgres( subconfig: " B " ) , as: . b)
202
202
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 ( ) )
204
204
_ = try ( a as! PostgresDatabase ) . query ( " drop schema public cascade " ) . wait ( )
205
205
_ = try ( a as! PostgresDatabase ) . query ( " create schema public " ) . wait ( )
206
206
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 ( ) )
208
208
_ = try ( b as! PostgresDatabase ) . query ( " drop schema public cascade " ) . wait ( )
209
209
_ = try ( b as! PostgresDatabase ) . query ( " create schema public " ) . wait ( )
210
210
}
@@ -225,9 +225,9 @@ extension DatabaseConfigurationFactory {
225
225
let baseSubconfig = PostgresConfiguration (
226
226
hostname: env ( " POSTGRES_HOSTNAME_ \( subconfig) " ) ?? " localhost " ,
227
227
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 "
231
231
)
232
232
233
233
return . postgres( configuration: baseSubconfig, connectionPoolTimeout: . seconds( 30 ) , encoder: encoder, decoder: decoder)
0 commit comments