File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
com.unity.netcode.gameobjects/Tests/Runtime/Transports Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -46,23 +46,6 @@ public IEnumerator Cleanup()
4646 yield return null ;
4747 }
4848
49- // Check that invalid endpoint addresses are detected and return false if detected
50- [ Test ]
51- public void DetectInvalidEndpoint ( )
52- {
53- using var netcodeLogAssert = new NetcodeLogAssert ( true ) ;
54- InitializeTransport ( out m_Server , out m_ServerEvents ) ;
55- InitializeTransport ( out m_Clients [ 0 ] , out m_ClientsEvents [ 0 ] ) ;
56- m_Server . ConnectionData . Address = "Fubar" ;
57- m_Server . ConnectionData . ServerListenAddress = "Fubar" ;
58- m_Clients [ 0 ] . ConnectionData . Address = "MoreFubar" ;
59- Assert . False ( m_Server . StartServer ( ) , "Server failed to detect invalid endpoint!" ) ;
60- Assert . False ( m_Clients [ 0 ] . StartClient ( ) , "Client failed to detect invalid endpoint!" ) ;
61- netcodeLogAssert . LogWasReceived ( LogType . Error , $ "Network listen address ({ m_Server . ConnectionData . Address } ) is Invalid!") ;
62- netcodeLogAssert . LogWasReceived ( LogType . Error , $ "Target server network address ({ m_Clients [ 0 ] . ConnectionData . Address } ) is Invalid!") ;
63- UnityTransportTestComponent . CleanUp ( ) ;
64- }
65-
6649 // Check connection with a single client.
6750 [ UnityTest ]
6851 public IEnumerator ConnectSingleClient ( )
You can’t perform that action at this time.
0 commit comments