1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +08:00

Fix TestQuickDeleteRemovesObject failing on second run

This commit is contained in:
Dean Herbert 2021-04-12 19:19:25 +09:00
parent cc2acf5e54
commit b4c75ba3c6

View File

@ -51,7 +51,7 @@ namespace osu.Game.Tests.Visual.Editing
[Test] [Test]
public void TestQuickDeleteRemovesSliderControlPoint() public void TestQuickDeleteRemovesSliderControlPoint()
{ {
Slider slider = new Slider { StartTime = 1000 }; Slider slider = null;
PathControlPoint[] points = PathControlPoint[] points =
{ {
@ -62,7 +62,12 @@ namespace osu.Game.Tests.Visual.Editing
AddStep("add slider", () => AddStep("add slider", () =>
{ {
slider.Path = new SliderPath(points); slider = new Slider
{
StartTime = 1000,
Path = new SliderPath(points)
};
EditorBeatmap.Add(slider); EditorBeatmap.Add(slider);
}); });