Compare commits
2 Commits
b2a3a0cf75
...
12b713bb70
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12b713bb70 | ||
|
|
e55cea0dcc |
@@ -148,7 +148,7 @@ class PlayerMatchDao extends DatabaseAccessor<AppDatabase>
|
||||
final playersToAdd = newPlayerIdsSet.difference(currentPlayerIds);
|
||||
final playersToRemove = currentPlayerIds.difference(newPlayerIdsSet);
|
||||
|
||||
db.transaction(() async {
|
||||
await db.transaction(() async {
|
||||
// Remove old players
|
||||
if (playersToRemove.isNotEmpty) {
|
||||
await (delete(playerMatchTable)..where(
|
||||
|
||||
@@ -838,7 +838,7 @@ void main() {
|
||||
),
|
||||
throwsA(anything),
|
||||
);
|
||||
}, skip: 'Skipped: transaction callback is not awaited in the DAO, causing unhandled error');
|
||||
});
|
||||
|
||||
// Verifies that a player can be in a match without being assigned to a team.
|
||||
test('Player can exist in match without team assignment', () async {
|
||||
|
||||
Reference in New Issue
Block a user