Skip to content

Commit

Permalink
Attempt to fix test failures by forcing refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Jul 11, 2024
1 parent 2eb6cf5 commit a9c8c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game.Tests/Database/BeatmapImporterUpdateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9c8c6e

Please sign in to comment.