mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Remove sleep from test_slow_retrieval_attack.py
Now, after we can use wait_for_server and the retry mechanism of TestServerProcess in utils.py we no longer need to use sleep in this test file. Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
This commit is contained in:
parent
54c837f654
commit
6462779230
1 changed files with 0 additions and 8 deletions
|
|
@ -172,14 +172,6 @@ def setUp(self):
|
|||
|
||||
logger.info('Slow Retrieval Server process started.')
|
||||
|
||||
# NOTE: Following error is raised if a delay is not long enough:
|
||||
# <urlopen error [Errno 111] Connection refused>
|
||||
# or, on Windows:
|
||||
# Failed to establish a new connection: [Errno 111] Connection refused'
|
||||
# 1s led to occasional failures in automated builds on AppVeyor, so
|
||||
# increasing this to 3s, sadly.
|
||||
time.sleep(3)
|
||||
|
||||
url_prefix = 'http://localhost:' \
|
||||
+ str(self.server_process_handler.port) + repository_basepath
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue