Skip to content

Commit

Permalink
Fix test failure in TestMetadataTransferred
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jul 13, 2024
1 parent c854dfd commit 2c102fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osu.Game.Tests/Database/BeatmapImporterUpdateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ public void TestMetadataTransferred()
using var rulesets = new RealmRulesetStore(realm, storage);
using var __ = getBeatmapArchive(out string pathOriginal);
using var _ = getBeatmapArchiveWithModifications(out string pathMissingOneBeatmap, directory =>
{
// arbitrary beatmap removal
Expand All @@ -496,7 +497,7 @@ public void TestMetadataTransferred()
Debug.Assert(importAfterUpdate != null);
Assert.That(importBeforeUpdate.ID, Is.Not.EqualTo(importAfterUpdate.ID));
Assert.That(importBeforeUpdate.Value.DateAdded, Is.EqualTo(importAfterUpdate.Value.DateAdded));
Assert.That(importBeforeUpdate.Value.DateAdded, Is.EqualTo(importAfterUpdate.Value.DateAdded).Within(TimeSpan.FromSeconds(1)));
});
}

Expand Down

0 comments on commit 2c102fc

Please sign in to comment.