1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-11 23:13:06 +08:00

Fix unit test error

This commit is contained in:
jkh675 2024-08-04 19:50:57 +08:00
parent a1a65e5b45
commit 273bd73a99

View File

@ -22,7 +22,7 @@ namespace osu.Game.Tests.Visual.UserInterface
private TestTooltipContainer container = null!;
[SetUp]
public void SetUp()
public void SetUp() => Schedule(() =>
{
Child = new Container
{
@ -48,7 +48,7 @@ namespace osu.Game.Tests.Visual.UserInterface
},
},
};
}
});
private static readonly string[] test_case_tooltip_string =
[
@ -57,6 +57,9 @@ namespace osu.Game.Tests.Visual.UserInterface
$"H{new string('e', 500)}llo",
];
//TODO: o!f issue: https://github.com/ppy/osu-framework/issues/5007
//Enable after o!f fixed
[Ignore("o!f issue https://github.com/ppy/osu-framework/issues/5007")]
[Test]
public void TestTooltipBasic([Values(0, 1, 2)] int index)
{