From 0fcaa8ad2449cd9f55dedda12623f565650fcd88 Mon Sep 17 00:00:00 2001 From: Avi Weinstock Date: Tue, 5 Jul 2022 13:28:27 +0000 Subject: [PATCH] Fixed hardcoded database credentials in unit tests --- Server/src/test/kotlin/core/storage/SQLStorageProviderTests.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/src/test/kotlin/core/storage/SQLStorageProviderTests.kt b/Server/src/test/kotlin/core/storage/SQLStorageProviderTests.kt index 7a37af344..02d1845f2 100644 --- a/Server/src/test/kotlin/core/storage/SQLStorageProviderTests.kt +++ b/Server/src/test/kotlin/core/storage/SQLStorageProviderTests.kt @@ -5,6 +5,7 @@ import org.junit.After import org.junit.jupiter.api.AfterAll import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test +import rs09.ServerConstants import rs09.auth.UserAccountInfo import rs09.game.system.SystemLogger import rs09.storage.SQLStorageProvider @@ -15,7 +16,7 @@ class SQLStorageProviderTests { val storage = SQLStorageProvider() val testAccountNames = ArrayList() init { - storage.configure("localhost", "global", "root", "") + storage.configure("localhost", ServerConstants.DATABASE_NAME!!, ServerConstants.DATABASE_USER!!, ServerConstants.DATABASE_PASS!!) val details = UserAccountInfo.createDefault() details.rights = 2 details.username = "test"