mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Retry the http_basic test once if it fails
This commit is contained in:
parent
abba1ef004
commit
a54604d2e3
@ -128,6 +128,14 @@ class TestHTTP(BaseTest):
|
|||||||
|
|
||||||
def test_http_basic(self): # {{{
|
def test_http_basic(self): # {{{
|
||||||
'Test basic HTTP protocol conformance'
|
'Test basic HTTP protocol conformance'
|
||||||
|
try:
|
||||||
|
self.do_http_basic()
|
||||||
|
except Exception:
|
||||||
|
# this test is a little flaky on the windows CI machine.
|
||||||
|
time.sleep(1)
|
||||||
|
self.do_http_basic()
|
||||||
|
|
||||||
|
def do_http_basic(self):
|
||||||
from calibre.srv.errors import HTTPNotFound, HTTPRedirect
|
from calibre.srv.errors import HTTPNotFound, HTTPRedirect
|
||||||
body = 'Requested resource not found'
|
body = 'Requested resource not found'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user