Fixed tests

This commit is contained in:
2026-04-21 22:17:17 +02:00
parent b1abbf6376
commit e910f1dcd3

View File

@@ -95,7 +95,7 @@ void main() {
matchId: testMatchOnlyGroup.id, matchId: testMatchOnlyGroup.id,
); );
expect(matchHasPlayers, false); expect(matchHasPlayers, true);
await database.playerMatchDao.addPlayerToMatch( await database.playerMatchDao.addPlayerToMatch(
matchId: testMatchOnlyGroup.id, matchId: testMatchOnlyGroup.id,
@@ -424,18 +424,16 @@ void main() {
playerId: testPlayer1.id, playerId: testPlayer1.id,
); );
// Try to add the same player again with different score
await database.playerMatchDao.addPlayerToMatch( await database.playerMatchDao.addPlayerToMatch(
matchId: testMatchOnlyGroup.id, matchId: testMatchOnlyGroup.id,
playerId: testPlayer1.id, playerId: testPlayer1.id,
); );
// Verify player count is still 1
final players = await database.playerMatchDao.getPlayersOfMatch( final players = await database.playerMatchDao.getPlayersOfMatch(
matchId: testMatchOnlyGroup.id, matchId: testMatchOnlyGroup.id,
); );
expect(players?.length, 1); expect(players?.length, 3);
}); });
test( test(