Skip to content

Commit 6adf0dd

Browse files
committed
Tweaks
1 parent 70b9201 commit 6adf0dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/AppTests/Helpers/DatabasePool.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ private func _withDatabase(_ databaseName: String,
268268
_ query: @Sendable @escaping (PostgresClient) async throws -> Void) async throws {
269269
let client = connect(to: databaseName, details: details)
270270
try await run(timeout: timeout) {
271+
#warning("This looks weird, review it")
271272
try await withThrowingTaskGroup { taskGroup in
272273
taskGroup.addTask { await client.run() }
273274
taskGroup.addTask {
@@ -282,7 +283,7 @@ private func _withDatabase(_ databaseName: String,
282283

283284
extension Environment {
284285
static var databasePoolSize: Int {
285-
Environment.get("DATABASEPOOL_SIZE").flatMap(Int.init) ?? 8
286+
Environment.get("DATABASEPOOL_SIZE").flatMap(Int.init) ?? 4
286287
}
287288

288289
static var databasePoolTearDown: Bool {

0 commit comments

Comments
 (0)