[Fix] Fixed broken test

This commit is contained in:
Robert von Burg 2023-02-10 10:51:02 +01:00
parent 7bbab2e0ea
commit 13e0328c1a
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 4 deletions

View File

@ -146,13 +146,11 @@ public abstract class DbConnectionBuilder {
if (useEnv) {
if (!System.getenv().containsKey(ENV_DB_HOST_OVERRIDE))
return dbUrl;
String hostOverrideKey = makeRealmKey(realmName, PROP_DB_HOST_OVERRIDE, true);
hostOverride = System.getenv(hostOverrideKey);
hostOverride = System.getenv(ENV_DB_HOST_OVERRIDE);
} else {
if (!System.getProperties().containsKey(PROP_DB_HOST_OVERRIDE))
return dbUrl;
String hostOverrideKey = makeRealmKey(realmName, PROP_DB_HOST_OVERRIDE, false);
hostOverride = System.getProperty(hostOverrideKey);
hostOverride = System.getProperty(PROP_DB_HOST_OVERRIDE);
}
if (!dbUrl.startsWith("jdbc:postgresql://"))