Skip to content

Commit ff2f1a8

Browse files
committed
Move more connection tests
1 parent 51dd9be commit ff2f1a8

File tree

6 files changed

+2
-0
lines changed

6 files changed

+2
-0
lines changed

com.unity.netcode.gameobjects/Tests/Runtime/ConnectionApproval.cs renamed to com.unity.netcode.gameobjects/Tests/Runtime/Connection/ConnectionApproval.cs

File renamed without changes.

com.unity.netcode.gameobjects/Tests/Runtime/ConnectionApproval.cs.meta renamed to com.unity.netcode.gameobjects/Tests/Runtime/Connection/ConnectionApproval.cs.meta

File renamed without changes.

com.unity.netcode.gameobjects/Tests/Runtime/ConnectionApprovalTimeoutTests.cs renamed to com.unity.netcode.gameobjects/Tests/Runtime/Connection/ConnectionApprovalTimeoutTests.cs

File renamed without changes.

com.unity.netcode.gameobjects/Tests/Runtime/ConnectionApprovalTimeoutTests.cs.meta renamed to com.unity.netcode.gameobjects/Tests/Runtime/Connection/ConnectionApprovalTimeoutTests.cs.meta

File renamed without changes.

com.unity.netcode.gameobjects/Tests/Runtime/Connection/StartupExceptionTests.cs renamed to com.unity.netcode.gameobjects/Tests/Runtime/StartupExceptionTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public IEnumerator VerifyNetworkManagerHandlesExceptionDuringStart()
100100

101101
Assert.That(isListening, Is.False, "Should not have started after exception during startup");
102102
Assert.That(transport.GetNetworkDriver().IsCreated, Is.False, "NetworkDriver should not be created.");
103+
Assert.False(toTest.IsServer, "IsServer should be false when NetworkManager failed to start");
104+
Assert.False(toTest.IsClient, "IsClient should be false when NetworkManager failed to start");
103105

104106
toTest.OnClientStarted -= ThrowExceptionAction;
105107
toTest.OnServerStarted -= ThrowExceptionAction;

com.unity.netcode.gameobjects/Tests/Runtime/Connection/StartupExceptionTests.cs.meta renamed to com.unity.netcode.gameobjects/Tests/Runtime/StartupExceptionTests.cs.meta

File renamed without changes.

0 commit comments

Comments
 (0)