Attempt to fix test failures by forcing refresh

This commit is contained in:
Bartłomiej Dach 2024-07-11 08:18:16 +02:00
parent 2eb6cf57af
commit a9c8c6e74d
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -168,12 +168,12 @@ public void TestExistingDifficultyModified()
Assert.That(importAfterUpdate, Is.Not.Null);
Debug.Assert(importAfterUpdate != null);
realm.Run(r => r.Refresh());
// should only contain the modified beatmap (others purged).
Assert.That(importBeforeUpdate.Value.Beatmaps, Has.Count.EqualTo(1));
Assert.That(importAfterUpdate.Value.Beatmaps, Has.Count.EqualTo(count_beatmaps));
realm.Run(r => r.Refresh());
checkCount<BeatmapInfo>(realm, count_beatmaps + 1);
checkCount<BeatmapMetadata>(realm, count_beatmaps + 1);