We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98a3ea7 + 04c7b08 commit 87a6ee5Copy full SHA for 87a6ee5
Tests/AppTests/AppTestCase.swift
@@ -87,7 +87,7 @@ extension AppTestCase {
87
88
static func createSchema(_ environment: Environment, databaseName: String) async throws {
89
do {
90
- try await withDatabase("postgres", .testing) { // Connect to `postgres` db in order to reset the test db
+ try await withDatabase("postgres", environment) { // Connect to `postgres` db in order to reset the test db
91
try await $0.query(PostgresQuery(unsafeSQL: "DROP DATABASE IF EXISTS \(databaseName) WITH (FORCE)"))
92
try await $0.query(PostgresQuery(unsafeSQL: "CREATE DATABASE \(databaseName)"))
93
}
0 commit comments