Fix cross-test interference

`TestLastPlayedUpdated` was implicitly relying on running first.
`TestGuestScoreIsStoredAsGuest` showing up changed test ordering,
causing the former test to fail if it didn't get to run first.
This commit is contained in:
Bartłomiej Dach 2023-10-10 09:30:51 +02:00
parent 24956588e9
commit ea400a9db7
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ public void TestLastPlayedUpdated()
{
DateTimeOffset? getLastPlayed() => Realm.Run(r => r.Find<BeatmapInfo>(Beatmap.Value.BeatmapInfo.ID)?.LastPlayed);
AddStep("reset last played", () => Realm.Write(r => r.Find<BeatmapInfo>(Beatmap.Value.BeatmapInfo.ID)!.LastPlayed = null));
AddAssert("last played is null", () => getLastPlayed() == null);
CreateTest();