From 5de22d2ff2db0ab943d0c0701994364261dc68f1 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 23 Feb 2020 11:18:54 +0100 Subject: [PATCH] NetworkServerTests: ShutdownCleanupTest improved --- Assets/Mirror/Tests/Editor/NetworkServerTest.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Mirror/Tests/Editor/NetworkServerTest.cs b/Assets/Mirror/Tests/Editor/NetworkServerTest.cs index 7e3553c44..b430b8776 100644 --- a/Assets/Mirror/Tests/Editor/NetworkServerTest.cs +++ b/Assets/Mirror/Tests/Editor/NetworkServerTest.cs @@ -179,6 +179,7 @@ public void ShutdownCleanupTest() // set local connection NetworkServer.SetLocalConnection(new ULocalConnectionToClient()); + Assert.That(NetworkServer.localClientActive, Is.True); // connect Transport.activeTransport.OnServerConnected.Invoke(42); @@ -191,6 +192,7 @@ public void ShutdownCleanupTest() Assert.That(NetworkServer.connections.Count, Is.EqualTo(0)); Assert.That(NetworkServer.active, Is.False); Assert.That(NetworkServer.localConnection, Is.Null); + Assert.That(NetworkServer.localClientActive, Is.False); } } }