mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 13:57:44 +00:00
fix test_serverStopsWhileConnected
This commit is contained in:
parent
13fc8460b2
commit
0445dc38cc
2 changed files with 8 additions and 3 deletions
|
|
@ -164,9 +164,12 @@ def test_serverStopsWhileConnected(getRunningServer, getClient):
|
|||
"""!Shutdown server while client is connected"""
|
||||
getClient.connect()
|
||||
getRunningServer.stop()
|
||||
time.sleep(0.1)
|
||||
assert getClient.isConnected # todo check why the first always return true here
|
||||
assert not getClient.isConnected
|
||||
timeout = 10
|
||||
while getClient.isConnected:
|
||||
print(timeout)
|
||||
timeout = timeout - 1
|
||||
if timeout is 0:
|
||||
assert 0
|
||||
|
||||
|
||||
@pytest.mark.skip("needs fixture for more than one client")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue