mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix test on windows
This commit is contained in:
parent
c86993794f
commit
e237d5525e
1 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
"""
|
||||
|
||||
import socket
|
||||
import sys
|
||||
from contextlib import closing
|
||||
|
||||
import pytest
|
||||
|
@ -132,7 +133,10 @@ class HTTPTestCase(TestCase):
|
|||
|
||||
url = "http://{host}:{port}/".format(host=host, port=port)
|
||||
result = http.query(url, raise_error=False)
|
||||
assert result == {"error": "[Errno 111] Connection refused"}, result
|
||||
if sys.platform.strtswith("win"):
|
||||
assert result == {"error": "[Errno 10061] Unknown error"}, result
|
||||
else:
|
||||
assert result == {"error": "[Errno 111] Connection refused"}, result
|
||||
|
||||
def test_query_error_handling(self):
|
||||
ret = http.query("http://127.0.0.1:0")
|
||||
|
|
Loading…
Add table
Reference in a new issue