1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:47:46 +08:00

Fix broken test step

This commit is contained in:
Bartłomiej Dach 2023-06-27 20:29:27 +02:00
parent ada9c48bde
commit 9681ee7eeb
No known key found for this signature in database

View File

@ -62,7 +62,9 @@ namespace osu.Game.Tests.Visual.Gameplay
AddStep("Add random", () =>
{
Key key = (Key)((int)Key.A + RNG.Next(26));
controller.Add(new KeyCounterKeyboardTrigger(key));
var trigger = new KeyCounterKeyboardTrigger(key);
Add(trigger);
controller.Add(trigger);
});
InputTrigger testTrigger = controller.Triggers.First();