Adjust SSL test for Qt 5.11
This commit is contained in:
parent
41303ecfcf
commit
6ca11ed95b
@ -54,7 +54,8 @@ def ssl_error_page(request, quteproc):
|
|||||||
quteproc.wait_for(message="Certificate error: *")
|
quteproc.wait_for(message="Certificate error: *")
|
||||||
time.sleep(0.5) # Wait for error page to appear
|
time.sleep(0.5) # Wait for error page to appear
|
||||||
content = quteproc.get_content().strip()
|
content = quteproc.get_content().strip()
|
||||||
assert "ERR_INSECURE_RESPONSE" in content
|
assert ("ERR_INSECURE_RESPONSE" in content or # Qt <= 5.10
|
||||||
|
"ERR_CERT_AUTHORITY_INVALID" in content) # Qt 5.11
|
||||||
else:
|
else:
|
||||||
if not request.config.webengine:
|
if not request.config.webengine:
|
||||||
line = quteproc.wait_for(message='Error while loading *: SSL '
|
line = quteproc.wait_for(message='Error while loading *: SSL '
|
||||||
|
Loading…
Reference in New Issue
Block a user