mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Fix test assertions(broken when migrated to pytest)
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
c083f4448a
commit
48ee392cbe
1 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
import sys
|
||||
|
||||
import pytest
|
||||
import requests
|
||||
from pytestshellutils.utils import ports
|
||||
|
@ -152,7 +154,10 @@ def test_query_null_response():
|
|||
|
||||
url = f"http://{host}:{port}/"
|
||||
result = http.query(url, raise_error=False)
|
||||
assert result == {"body": None}, result
|
||||
if sys.platform.startswith("win"):
|
||||
assert result == {"error": "[Errno 10061] Unknown error"}, result
|
||||
else:
|
||||
assert result == {"error": "[Errno 111] Connection refused"}
|
||||
|
||||
|
||||
def test_query_error_handling():
|
||||
|
|
Loading…
Add table
Reference in a new issue