forked from 2009Scape/Server
Fixed hardcoded database credentials in unit tests
This commit is contained in:
parent
7c95c0725f
commit
0fcaa8ad24
1 changed files with 2 additions and 1 deletions
|
|
@ -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<String>()
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue