summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-02-18 08:30:35 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-02-18 11:10:47 +0100
commit35ca04ce1b77636f4d929e0d2b83feda081d6684 (patch)
tree0746a16dd365406633ed6450e3bce36e6aeb54e0
parent6174fc993aa356fbb52764b273967b53c6e51ea3 (diff)
downloadcurl-35ca04ce1b77636f4d929e0d2b83feda081d6684.tar.gz
test1188: change error from connect to resolve error
Using the %NOLISTENPORT to trigger a connection failure is somewhat "risky" (since it isn't guaranteed to not be listened to) and caused occasional CI problems. This fix changes the infused error to be a more reliable one but still verifies the --write-out functionality properly - which is the purpose of this test. Reported-by: Jay Satiro Fixes #6621 Closes #6623
-rw-r--r--tests/data/test11884
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/data/test1188 b/tests/data/test1188
index d2e741e4d..8912b391a 100644
--- a/tests/data/test1188
+++ b/tests/data/test1188
@@ -27,7 +27,7 @@ http
--write-out with %{onerror} and %{urlnum} to stderr
</name>
<command>
-http://%HOSTIP:%NOLISTENPORT/we/want/our/1188 http://%HOSTIP:%HTTPPORT/we/want/our/1188 -w '%{onerror}%{stderr}%{urlnum} says %{exitcode} %{errormsg}\n' -s
+http://non-existing-host.haxx.se:%NOLISTENPORT/we/want/our/1188 http://%HOSTIP:%HTTPPORT/we/want/our/1188 -w '%{onerror}%{stderr}%{urlnum} says %{exitcode} %{errormsg}\n' -s
</command>
</client>
@@ -41,7 +41,7 @@ Accept: */*
</protocol>
<stderr mode="text">
-0 says 7 Failed to connect to %HOSTIP port %NOLISTENPORT: Connection refused
+0 says 6 Could not resolve host: non-existing-host.haxx.se
</stderr>
</verify>
</testcase>