fix match missing game
This commit is contained in:
@@ -214,8 +214,8 @@ void main() {
|
|||||||
'Adding the same player to separate matches works correctly',
|
'Adding the same player to separate matches works correctly',
|
||||||
() async {
|
() async {
|
||||||
final playersList = [testPlayer1, testPlayer2, testPlayer3];
|
final playersList = [testPlayer1, testPlayer2, testPlayer3];
|
||||||
final match1 = Match(name: 'Match 1', players: playersList);
|
final match1 = Match(name: 'Match 1', game: testGame, players: playersList);
|
||||||
final match2 = Match(name: 'Match 2', players: playersList);
|
final match2 = Match(name: 'Match 2', game: testGame, players: playersList);
|
||||||
|
|
||||||
await Future.wait([
|
await Future.wait([
|
||||||
database.matchDao.addMatch(match: match1),
|
database.matchDao.addMatch(match: match1),
|
||||||
|
|||||||
Reference in New Issue
Block a user