mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-06 06:43:54 +00:00
test changes
This commit is contained in:
parent
40e0a951da
commit
422109f3fe
4 changed files with 14 additions and 6 deletions
|
|
@ -156,8 +156,15 @@ def test_serverStopFailed(getServer):
|
|||
assert getServer.stop()
|
||||
|
||||
|
||||
def test_serverDoubleStart():
|
||||
def test_serverDoubleStart(getServer):
|
||||
"""!Test to start the server twice"""
|
||||
assert getServer.start()
|
||||
assert getServer.start()
|
||||
assert getServer.stop()
|
||||
|
||||
|
||||
def test_serverStartTwoInstances():
|
||||
"""!Test to start two server different server instances"""
|
||||
dataQueue = queue.Queue()
|
||||
testServer1 = TCPServer(dataQueue)
|
||||
testServer2 = TCPServer(dataQueue)
|
||||
|
|
@ -179,7 +186,8 @@ def test_serverStopsWhileConnected(getRunningServer, getClient):
|
|||
time.sleep(0.1)
|
||||
timeout = timeout - 1
|
||||
if timeout is 0:
|
||||
assert 0
|
||||
break
|
||||
assert timeout
|
||||
|
||||
|
||||
@pytest.mark.skip("needs fixture for more than one client")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue