Fix test failure due to polluted bindable value from previous test

This commit is contained in:
Dean Herbert 2020-12-18 16:33:55 +09:00
parent bdfeb55dec
commit e6a38ffbce
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ namespace osu.Game.Tests.Visual
public abstract class MultiplayerTestScene : ScreenTestScene
{
[Cached]
private readonly Bindable<Room> currentRoom = new Bindable<Room>(new Room());
private readonly Bindable<Room> currentRoom = new Bindable<Room>();
protected Room Room => currentRoom.Value;
@ -27,7 +27,7 @@ protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnl
[SetUp]
public void Setup() => Schedule(() =>
{
Room.CopyFrom(new Room());
currentRoom.Value = new Room();
});
}
}