diff --git a/tests/gui/tests/GUIUpdater/TestGUIUpdater.cpp b/tests/gui/tests/GUIUpdater/TestGUIUpdater.cpp index d0a6bd03..bdd652fb 100644 --- a/tests/gui/tests/GUIUpdater/TestGUIUpdater.cpp +++ b/tests/gui/tests/GUIUpdater/TestGUIUpdater.cpp @@ -227,8 +227,8 @@ Test(GUIUpdater, updatePlayerPosition, .timeout = 5) gameData->addTeam(team); gameData->addPlayerToTeam("TEAM1", player); - gameData->addTeam("TEAM1", (Color){0, 0, 0, 0}); - gameData->addPlayerToTeam("TEAM1", Gui::Player(1, "TEAM1", std::make_pair(1, 1), 1, 1)); + gameData->addTeam("TEAM2", (Color){0, 0, 0, 0}); + gameData->addPlayerToTeam("TEAM2", Gui::Player(1, "TEAM2", std::make_pair(1, 1), 1, 1)); guiUpdater.update("ppo", {"1", "1", "1", "1"}); cr_assert_eq(gameData->getTeam("TEAM1").getPlayer(1).get()->getPosition().first, 1); diff --git a/tests/gui/tests/GameDatas/TestTeam.cpp b/tests/gui/tests/GameDatas/TestTeam.cpp index b40f73c2..ab29b4f2 100644 --- a/tests/gui/tests/GameDatas/TestTeam.cpp +++ b/tests/gui/tests/GameDatas/TestTeam.cpp @@ -289,7 +289,7 @@ Test(Team, getPlayerColor, .timeout = 5) { Model model; ModelAnimation *modelAnimation = nullptr; - Gui::Team team("TEAM1", model, model, modelAnimation, (Color){0, 0, 0, 0}); + Gui::Team team("TEAM1", model, model, modelAnimation, (Color){255, 255, 255, 255}); Color color = team.getPlayerColor(); cr_assert_eq(color.r, 255);