mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Fix test failure in TestMetadataTransferred
This commit is contained in:
parent
c854dfd6fb
commit
2c102fc9d0
@ -479,6 +479,7 @@ namespace osu.Game.Tests.Database
|
|||||||
using var rulesets = new RealmRulesetStore(realm, storage);
|
using var rulesets = new RealmRulesetStore(realm, storage);
|
||||||
|
|
||||||
using var __ = getBeatmapArchive(out string pathOriginal);
|
using var __ = getBeatmapArchive(out string pathOriginal);
|
||||||
|
|
||||||
using var _ = getBeatmapArchiveWithModifications(out string pathMissingOneBeatmap, directory =>
|
using var _ = getBeatmapArchiveWithModifications(out string pathMissingOneBeatmap, directory =>
|
||||||
{
|
{
|
||||||
// arbitrary beatmap removal
|
// arbitrary beatmap removal
|
||||||
@ -496,7 +497,7 @@ namespace osu.Game.Tests.Database
|
|||||||
Debug.Assert(importAfterUpdate != null);
|
Debug.Assert(importAfterUpdate != null);
|
||||||
|
|
||||||
Assert.That(importBeforeUpdate.ID, Is.Not.EqualTo(importAfterUpdate.ID));
|
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)));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user