Skip to content

Commit a8c23a9

Browse files
committed
test: fix error message for new curl version
1 parent df3a560 commit a8c23a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_http_errors.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def test_get_bad_url(sess):
1414
select net.http_get('localhost:{wrong_port}');
1515
"""
1616
))
17-
assert r"Couldn\'t resolve proxy name" in str(execinfo)
17+
18+
assert r"resolve proxy name" in str(execinfo)
1819

1920

2021
def test_bad_post(sess):
@@ -91,7 +92,9 @@ def test_it_keeps_working_after_many_connection_refused(sess):
9192
"""
9293
)).fetchone()
9394

94-
assert error_msg == "Couldn't connect to server"
95+
# newer curl version changes the error message
96+
expected = ("Couldn't connect to server", "Could not connect to server")
97+
assert error_msg in expected
9598
assert count == 10
9699

97100
(request_id,) = sess.execute(text(

0 commit comments

Comments
 (0)