forked from pool/python-pycurl
Accepting request 505248 from home:alarrosa:branches:devel:languages:python
- Add increase_test_timeout.diff so tests don't fail when obs is overloaded and it takes more than 1 second to start a service. OBS-URL: https://build.opensuse.org/request/show/505248 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=28
This commit is contained in:
committed by
Git OBS Bridge
parent
8ef2cc9944
commit
c9e5b920e1
17
increase_test_timeout.diff
Normal file
17
increase_test_timeout.diff
Normal file
@@ -0,0 +1,17 @@
|
||||
Index: pycurl-7.43.0/tests/runwsgi.py
|
||||
===================================================================
|
||||
--- pycurl-7.43.0.orig/tests/runwsgi.py
|
||||
+++ pycurl-7.43.0/tests/runwsgi.py
|
||||
@@ -55,10 +55,10 @@ def start_bottle_server(app, port, serve
|
||||
server_thread.daemon = True
|
||||
server_thread.start()
|
||||
|
||||
- ok = util.wait_for_network_service(('127.0.0.1', port), 0.1, 10)
|
||||
+ ok = util.wait_for_network_service(('127.0.0.1', port), 0.1, 30)
|
||||
if not ok:
|
||||
import warnings
|
||||
- warnings.warn('Server did not start after 1 second')
|
||||
+ warnings.warn('Server did not start after 3 seconds')
|
||||
|
||||
return server_thread.server
|
||||
|
Reference in New Issue
Block a user