mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 13:57:44 +00:00
fix errors
This commit is contained in:
parent
096d6fefe3
commit
50095bf4a7
2 changed files with 11 additions and 6 deletions
|
|
@ -182,7 +182,7 @@ def test_serverStopsWhileConnected(getRunningServer, getClient):
|
|||
"""!Shutdown server while client is connected"""
|
||||
getClient.connect()
|
||||
getRunningServer.stop()
|
||||
timeout = 10
|
||||
timeout = 5
|
||||
while getClient.isConnected:
|
||||
time.sleep(0.1)
|
||||
timeout = timeout - 1
|
||||
|
|
@ -221,7 +221,7 @@ def test_serverHighLoad(getRunningServer):
|
|||
logging.debug("start sendThreads")
|
||||
threads = []
|
||||
for thr_id in range(10):
|
||||
thr = threading.Thread(target=sendThread, name="sendThread-"+str(thr_id))
|
||||
thr = threading.Thread(target=sendThread, name="sendThread-" + str(thr_id))
|
||||
thr.daemon = True
|
||||
thr.start()
|
||||
threads.append(thr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue