Added a connection pool timeout to the Configuration type in the Persistence package.
This commit is contained in:
@@ -43,7 +43,8 @@ struct ServiceTests {
|
||||
username: "loud",
|
||||
password: "loud",
|
||||
tls: .off,
|
||||
maxConnectionsPerEventLoop: 1
|
||||
maxConnectionsPerEventLoop: 1,
|
||||
poolTimeout: .seconds(10)
|
||||
)
|
||||
),
|
||||
logger: Logger(label: "test")
|
||||
@@ -165,7 +166,8 @@ private let postgresDriver: Persistence.Driver? = {
|
||||
username: environment["POSTGRES_TEST_USERNAME"] ?? "loud",
|
||||
password: environment["POSTGRES_TEST_PASSWORD"] ?? "loud",
|
||||
tls: .off,
|
||||
maxConnectionsPerEventLoop: 2
|
||||
maxConnectionsPerEventLoop: 2,
|
||||
poolTimeout: .seconds(10)
|
||||
)
|
||||
)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user