mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
fix server test
This commit is contained in:
parent
2a139aeb29
commit
0e587e7698
|
|
@ -135,8 +135,8 @@ class TCPServer:
|
|||
return False
|
||||
|
||||
else:
|
||||
logging.warning("server always started")
|
||||
return True
|
||||
logging.error("server always started")
|
||||
return False
|
||||
|
||||
def stop(self):
|
||||
"""!Stops the TCP socket server
|
||||
|
|
|
|||
|
|
@ -162,7 +162,10 @@ def test_serverDoubleStart():
|
|||
testServer1 = TCPServer(dataQueue)
|
||||
testServer2 = TCPServer(dataQueue)
|
||||
assert testServer1.start()
|
||||
assert not testServer2.start()
|
||||
assert testServer1.isRunning
|
||||
assert testServer2.start()
|
||||
assert testServer1.isRunning
|
||||
assert testServer2.isRunning
|
||||
assert testServer1.stop()
|
||||
assert testServer2.stop()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue