Tests: remove redundant NetworkServer.Shutdowns

This commit is contained in:
vis2k 2021-06-15 12:50:27 +08:00
parent 6e7d71b9d3
commit 52ee9408b1
3 changed files with 0 additions and 10 deletions

View File

@ -69,9 +69,6 @@ public override void TearDown()
// we have no real clients.
NetworkServer.connections.Clear();
// stop server
NetworkServer.Shutdown();
base.TearDown();
}

View File

@ -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]

View File

@ -22,10 +22,6 @@ public override IEnumerator UnitySetUp()
[UnityTearDown]
public override IEnumerator UnityTearDown()
{
if (NetworkServer.active)
{
NetworkServer.Shutdown();
}
yield return base.UnityTearDown();
}