Skip to content

Commit

Permalink
Merge pull request #1589 from madsboddum/fix/testing/compilation-errors
Browse files Browse the repository at this point in the history
Testcase compilation error fixes
  • Loading branch information
Josh-Larson committed Jul 2, 2024
2 parents a3c9648 + fbfde6a commit 87e1ca6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/***********************************************************************************
* Copyright (c) 2024 /// Project SWG /// www.projectswg.com *
* *
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
* ProjectSWG is an emulation project for Star Wars Galaxies founded on *
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
* Our goal is to create an emulator which will provide a server for players to *
* continue playing a game similar to the one they used to play. We are basing *
* it on the final publish of the game prior to end-game events. *
* Our goal is to create one or more emulators which will provide servers for *
* players to continue playing a game similar to the one they used to play. *
* *
* This file is part of Holocore. *
* *
Expand Down Expand Up @@ -48,9 +47,9 @@ class CloningTest : AcceptanceTest() {

@Test
fun `possible to clone after being deathblown`() {
addUser("username", "password", AccessLevel.DEV)
val character1 = HeadlessSWGClient.createZonedInCharacter("username", "password", "charone")
val character2 = HeadlessSWGClient.createZonedInCharacter("username", "password", "chartwo")
val user = generateUser(AccessLevel.DEV)
val character1 = HeadlessSWGClient.createZonedInCharacter(user.username, user.password, "charone")
val character2 = HeadlessSWGClient.createZonedInCharacter(user.username, user.password, "chartwo")
character1.duel(character2.player.creatureObject)
character2.duel(character1.player.creatureObject)
character1.adminKill(character2.player.creatureObject)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/***********************************************************************************
* Copyright (c) 2024 /// Project SWG /// www.projectswg.com *
* *
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
* ProjectSWG is an emulation project for Star Wars Galaxies founded on *
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
* Our goal is to create an emulator which will provide a server for players to *
* continue playing a game similar to the one they used to play. We are basing *
* it on the final publish of the game prior to end-game events. *
* Our goal is to create one or more emulators which will provide servers for *
* players to continue playing a game similar to the one they used to play. *
* *
* This file is part of Holocore. *
* *
Expand Down Expand Up @@ -74,9 +73,9 @@ class KillAdminCommandTest : AcceptanceTest() {

@Test
fun killPlayer() {
addUser("username", "password", AccessLevel.DEV)
val character1 = HeadlessSWGClient.createZonedInCharacter("username", "password", "charone")
val character2 = HeadlessSWGClient.createZonedInCharacter("username", "password", "chartwo")
val user = generateUser(AccessLevel.DEV)
val character1 = HeadlessSWGClient.createZonedInCharacter(user.username, user.password, "charone")
val character2 = HeadlessSWGClient.createZonedInCharacter(user.username, user.password, "chartwo")

character1.adminKill(character2.player.creatureObject)

Expand Down

0 comments on commit 87e1ca6

Please sign in to comment.