Skip to content

Commit 1c8b493

Browse files
committed
Fix failing tests
1 parent 9649c1b commit 1c8b493

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

com.unity.netcode.gameobjects/Tests/Editor/Transports/UnityTransportTests.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public void UnityTransport_RestartSucceedsAfterFailure()
131131

132132
Assert.False(transport.StartServer());
133133

134-
LogAssert.Expect(LogType.Error, "Invalid network endpoint: 127.0.0.:4242.");
135134
LogAssert.Expect(LogType.Error, "Network listen address (127.0.0.) is Invalid!");
136135

137136
transport.SetConnectionData("127.0.0.1", 4242, "127.0.0.1");
@@ -153,22 +152,6 @@ public void UnityTransport_StartServerWithoutAddresses()
153152
transport.Shutdown();
154153
}
155154

156-
// Check that StartClient returns false with bad connection data.
157-
[Test]
158-
public void UnityTransport_StartClientFailsWithBadAddress()
159-
{
160-
UnityTransport transport = new GameObject().AddComponent<UnityTransport>();
161-
transport.Initialize();
162-
163-
transport.SetConnectionData("foobar", 4242);
164-
Assert.False(transport.StartClient());
165-
166-
LogAssert.Expect(LogType.Error, "Invalid network endpoint: foobar:4242.");
167-
LogAssert.Expect(LogType.Error, "Target server network address (foobar) is Invalid!");
168-
169-
transport.Shutdown();
170-
}
171-
172155
[Test]
173156
public void UnityTransport_EmptySecurityStringsShouldThrow([Values("", null)] string cert, [Values("", null)] string secret)
174157
{

0 commit comments

Comments
 (0)