This commit is contained in:
vis2k 2022-02-02 21:18:07 +08:00
parent 4a23a9a0ad
commit 8d602ecec7

View File

@ -243,8 +243,23 @@ public void CommandOverloads()
}
// need host mode for this one test
public class CommandTest_HostMode : RemoteTestBase
public class CommandTest_HostMode : MirrorTest
{
[SetUp]
public override void SetUp()
{
base.SetUp();
// start server/client
NetworkServer.Listen(1);
ConnectHostClientBlockingAuthenticatedAndReady();
}
[TearDown]
public override void TearDown()
{
base.TearDown();
}
// test to prevent https://github.com/vis2k/Mirror/issues/2629
// from happening again in the future
// -> [Command]s can be called on other objects with requiresAuthority=false.