From 52ee9408b1f1fd3c163f264d41b725b649366595 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 15 Jun 2021 12:50:27 +0800 Subject: [PATCH] Tests: remove redundant NetworkServer.Shutdowns --- Assets/Mirror/Tests/Editor/InterestManagementTests_Common.cs | 3 --- Assets/Mirror/Tests/Editor/NetworkServerTest.cs | 3 --- Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs | 4 ---- 3 files changed, 10 deletions(-) diff --git a/Assets/Mirror/Tests/Editor/InterestManagementTests_Common.cs b/Assets/Mirror/Tests/Editor/InterestManagementTests_Common.cs index 21cb777c2..f8f68ab20 100644 --- a/Assets/Mirror/Tests/Editor/InterestManagementTests_Common.cs +++ b/Assets/Mirror/Tests/Editor/InterestManagementTests_Common.cs @@ -69,9 +69,6 @@ public override void TearDown() // we have no real clients. NetworkServer.connections.Clear(); - // stop server - NetworkServer.Shutdown(); - base.TearDown(); } diff --git a/Assets/Mirror/Tests/Editor/NetworkServerTest.cs b/Assets/Mirror/Tests/Editor/NetworkServerTest.cs index 554c9395e..1cd813adf 100644 --- a/Assets/Mirror/Tests/Editor/NetworkServerTest.cs +++ b/Assets/Mirror/Tests/Editor/NetworkServerTest.cs @@ -747,9 +747,6 @@ public void SendToClientOfPlayer() // was it send to and handled by the connection? Assert.That(called, Is.EqualTo(1)); - - // clean up - NetworkServer.Shutdown(); } [Test] diff --git a/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs b/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs index caa47cc33..0bcd3bc63 100644 --- a/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs +++ b/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs @@ -22,10 +22,6 @@ public override IEnumerator UnitySetUp() [UnityTearDown] public override IEnumerator UnityTearDown() { - if (NetworkServer.active) - { - NetworkServer.Shutdown(); - } yield return base.UnityTearDown(); }