mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 13:57:44 +00:00
little change in server test
This commit is contained in:
parent
69acff24e4
commit
43674989b9
2 changed files with 5 additions and 4 deletions
|
|
@ -48,10 +48,12 @@ def getRunningServer(getServer):
|
|||
"""!Build and serve a still running TCPServer"""
|
||||
logging.debug("start server")
|
||||
assert getServer.start()
|
||||
assert getServer.isRunning
|
||||
while not getServer.isRunning:
|
||||
pass
|
||||
yield getServer
|
||||
logging.debug("stop server")
|
||||
assert getServer.stop()
|
||||
time.sleep(0.1) # wait for safe stopped
|
||||
|
||||
|
||||
def test_clientConnectFailed(getClient):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue