mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Remove test coverage of scores being deleted when beatmaps are
This is not supported in realm for now. Probably best suited to a separate pass, similar to files, using backlink count.
This commit is contained in:
parent
d8e75a9de4
commit
af5d3af664
@ -119,44 +119,6 @@ namespace osu.Game.Tests.Scores.IO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
public async Task TestImportWithDeletedBeatmapSet()
|
|
||||||
{
|
|
||||||
using (HeadlessGameHost host = new CleanRunHeadlessGameHost())
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var osu = LoadOsuIntoHost(host, true);
|
|
||||||
|
|
||||||
var toImport = new ScoreInfo
|
|
||||||
{
|
|
||||||
User = new APIUser { Username = "Test user" },
|
|
||||||
Hash = Guid.NewGuid().ToString(),
|
|
||||||
Statistics = new Dictionary<HitResult, int>
|
|
||||||
{
|
|
||||||
{ HitResult.Perfect, 100 },
|
|
||||||
{ HitResult.Miss, 50 }
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var imported = await LoadScoreIntoOsu(osu, toImport);
|
|
||||||
|
|
||||||
var beatmapManager = osu.Dependencies.Get<BeatmapManager>();
|
|
||||||
var scoreManager = osu.Dependencies.Get<ScoreManager>();
|
|
||||||
|
|
||||||
beatmapManager.Delete(beatmapManager.GetAllUsableBeatmapSets().First(s => s.Beatmaps.Any(b => b.ID == imported.BeatmapInfo.ID)));
|
|
||||||
Assert.That(scoreManager.Query(s => s.ID == imported.ID).DeletePending, Is.EqualTo(true));
|
|
||||||
|
|
||||||
var secondImport = await LoadScoreIntoOsu(osu, imported);
|
|
||||||
Assert.That(secondImport, Is.Null);
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
host.Exit();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public async Task TestOnlineScoreIsAvailableLocally()
|
public async Task TestOnlineScoreIsAvailableLocally()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user