mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:23:22 +08:00
Fix BackgroundDataStoreProcessor test failure
This commit is contained in:
parent
ad2db3f853
commit
ae5b0aa54b
@ -172,7 +172,7 @@ namespace osu.Game.Tests.Database
|
|||||||
Ruleset = r.All<RulesetInfo>().First(),
|
Ruleset = r.All<RulesetInfo>().First(),
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
TotalScoreVersion = 30000002,
|
TotalScoreVersion = 30000013,
|
||||||
IsLegacyScore = true,
|
IsLegacyScore = true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -181,7 +181,7 @@ namespace osu.Game.Tests.Database
|
|||||||
AddStep("Run background processor", () => Add(new TestBackgroundDataStoreProcessor()));
|
AddStep("Run background processor", () => Add(new TestBackgroundDataStoreProcessor()));
|
||||||
|
|
||||||
AddUntilStep("Score marked as failed", () => Realm.Run(r => r.Find<ScoreInfo>(scoreInfo.ID)!.BackgroundReprocessingFailed), () => Is.True);
|
AddUntilStep("Score marked as failed", () => Realm.Run(r => r.Find<ScoreInfo>(scoreInfo.ID)!.BackgroundReprocessingFailed), () => Is.True);
|
||||||
AddAssert("Score version not upgraded", () => Realm.Run(r => r.Find<ScoreInfo>(scoreInfo.ID)!.TotalScoreVersion), () => Is.EqualTo(30000002));
|
AddAssert("Score version not upgraded", () => Realm.Run(r => r.Find<ScoreInfo>(scoreInfo.ID)!.TotalScoreVersion), () => Is.EqualTo(30000013));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Loading…
Reference in New Issue
Block a user