From 04c7b08c52b17fb037fc9e727cbe07f047abd764 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Mon, 9 Sep 2024 15:47:48 +0200 Subject: [PATCH] Fix env assignment --- Tests/AppTests/AppTestCase.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/AppTests/AppTestCase.swift b/Tests/AppTests/AppTestCase.swift index b42611827..bb8cd650a 100644 --- a/Tests/AppTests/AppTestCase.swift +++ b/Tests/AppTests/AppTestCase.swift @@ -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)")) }