Skip to content

Commit 04c7b08

Browse files
committed
Fix env assignment
1 parent 98a3ea7 commit 04c7b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/AppTests/AppTestCase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ extension AppTestCase {
8787

8888
static func createSchema(_ environment: Environment, databaseName: String) async throws {
8989
do {
90-
try await withDatabase("postgres", .testing) { // Connect to `postgres` db in order to reset the test db
90+
try await withDatabase("postgres", environment) { // Connect to `postgres` db in order to reset the test db
9191
try await $0.query(PostgresQuery(unsafeSQL: "DROP DATABASE IF EXISTS \(databaseName) WITH (FORCE)"))
9292
try await $0.query(PostgresQuery(unsafeSQL: "CREATE DATABASE \(databaseName)"))
9393
}

0 commit comments

Comments
 (0)