From 8d602ecec70fffeaaf66f557e84d7fc1adce997a Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 2 Feb 2022 21:18:07 +0800 Subject: [PATCH] cleaner --- Assets/Mirror/Tests/Editor/CommandTest.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Tests/Editor/CommandTest.cs b/Assets/Mirror/Tests/Editor/CommandTest.cs index 5d9835117..40077bc9e 100644 --- a/Assets/Mirror/Tests/Editor/CommandTest.cs +++ b/Assets/Mirror/Tests/Editor/CommandTest.cs @@ -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.