mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 22:27:25 +09:00
Fix test failure due to polluted bindable value from previous test
This commit is contained in:
parent
bdfeb55dec
commit
e6a38ffbce
@ -11,7 +11,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
public abstract class MultiplayerTestScene : ScreenTestScene
|
public abstract class MultiplayerTestScene : ScreenTestScene
|
||||||
{
|
{
|
||||||
[Cached]
|
[Cached]
|
||||||
private readonly Bindable<Room> currentRoom = new Bindable<Room>(new Room());
|
private readonly Bindable<Room> currentRoom = new Bindable<Room>();
|
||||||
|
|
||||||
protected Room Room => currentRoom.Value;
|
protected Room Room => currentRoom.Value;
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
[SetUp]
|
[SetUp]
|
||||||
public void Setup() => Schedule(() =>
|
public void Setup() => Schedule(() =>
|
||||||
{
|
{
|
||||||
Room.CopyFrom(new Room());
|
currentRoom.Value = new Room();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user