Skip to content

Commit

Permalink
Merge pull request #3372 from SwiftPackageIndex/fix-env
Browse files Browse the repository at this point in the history
Fix env assignment
  • Loading branch information
finestructure authored Sep 9, 2024
2 parents 98a3ea7 + 04c7b08 commit 87a6ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/AppTests/AppTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ extension AppTestCase {

static func createSchema(_ environment: Environment, databaseName: String) async throws {
do {
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
try await $0.query(PostgresQuery(unsafeSQL: "DROP DATABASE IF EXISTS \(databaseName) WITH (FORCE)"))
try await $0.query(PostgresQuery(unsafeSQL: "CREATE DATABASE \(databaseName)"))
}
Expand Down

0 comments on commit 87a6ee5

Please sign in to comment.