Skip to content
Snippets Groups Projects
Commit f9310143 authored by Bauer Matthis's avatar Bauer Matthis
Browse files

20.01.2024 - fixed tests #27

parent e45c44dd
No related branches found
No related tags found
2 merge requests!7Dev in Main Merge,!1Feat/service testing
......@@ -307,9 +307,9 @@ public class TournamentService {
nextRoundMatches = tournament.getBracket()
.get(i + 1)
.getMatches();
List<UUID> nextRoundMatchIds = nextRoundMatches.keySet()
List<UUID> nextRoundMatchIds = new ArrayList<>(nextRoundMatches.keySet()
.stream()
.toList();
.toList());
for (Map.Entry<UUID, Match> entry : tournament.getBracket()
.get(i)
......@@ -320,7 +320,7 @@ public class TournamentService {
.setNextMatchId(nextMatch);
if (timesUsed > 0) {
nextRoundMatchIds.removeFirst();
nextRoundMatchIds.remove(0);
timesUsed = 0;
} else {
timesUsed += 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment