Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(ci): use postgres admin db for tests

Tinbe216d6092f2
diff --git a/tests/api-integration/helpers/database.ts b/tests/api-integration/helpers/database.ts
index 082b21436..5ed2810c3 100644
--- a/tests/api-integration/helpers/database.ts
+++ b/tests/api-integration/helpers/database.ts
@@ -16,12 +16,7 @@ function getDatabaseName(connectionString: string) {
function getAdminDatabaseUrl(connectionString: string) {
const url = new URL(connectionString);
- const databaseName = getDatabaseName(connectionString);
-
- if (databaseName.endsWith("_test")) {
- url.pathname = `/${databaseName.slice(0, -5) || "postgres"}`;
- }
-
+ url.pathname = "/postgres";
return url.toString();
}