]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: set --expect100-timeout to improve test reliability
authorDan Fandrich <dan@coneharvesters.com>
Fri, 29 Sep 2023 22:27:21 +0000 (15:27 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 4 Oct 2023 19:15:57 +0000 (12:15 -0700)
On an overloaded server, the default 1 second timeout can go by without
the test server having a chance to respond with the expected headers,
causing tests to fail. Increase the 1 second timeout to 99 seconds so
this failure mode is no longer a problem on test 1129. Some other tests
already set a high value, but make them consistently 99 seconds so if
something goes wrong the test is stalled for less time.

Ref: #11328

tests/data/test1070
tests/data/test1129
tests/data/test1130
tests/data/test1131
tests/data/test357

index 1f5d6cf94d67ec7b5c14cf31b93242ddec9da016..18c2df3adcd261766e749a8d92552bfc45275760 100644 (file)
@@ -32,7 +32,7 @@ http
 HTTP POST with server closing connection before (all) data is received
 </name>
 <command>
- -d @%LOGDIR/input%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -H "Expect: 100-continue"
+-d @%LOGDIR/input%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -H "Expect: 100-continue"
 </command>
 <file name="%LOGDIR/input%TESTNUMBER">
 This creates the named file with this content before the test case is run,
index a649a38e9d157d28923607b6d3703131207cdeaf..41b295563a4138f0950215a70a0a11a3b7f2bf3c 100644 (file)
@@ -51,7 +51,7 @@ http
 HTTP POST expect 100-continue with a 404
 </name>
  <command option="no-output">
--d @%LOGDIR/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001
+-d @%LOGDIR/file%TESTNUMBER --expect100-timeout 99 http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001
 </command>
 </client>
 
index 133363de1a0aecd3d2af4a0b4fef9fe2d7600db1..bdab216d812a71c881c6876270701532b761b085 100644 (file)
@@ -52,7 +52,7 @@ http
 HTTP POST forced expect 100-continue with a 404
 </name>
  <command option="no-output">
--d @%LOGDIR/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -H "Expect: 100-continue" --expect100-timeout 999
+-d @%LOGDIR/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -H "Expect: 100-continue" --expect100-timeout 99
 </command>
 </client>
 
index b5e738802cc8cdf969cd988869bd62671c05fbe2..20ad5cfd85e7335a18d8446fbd6e95dd5a0f9424 100644 (file)
@@ -52,7 +52,7 @@ http
 HTTP PUT expect 100-continue with a 400
 </name>
  <command option="no-output">
--H "Expect: 100-continue" -T %LOGDIR/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 --expect100-timeout 999
+-H "Expect: 100-continue" -T %LOGDIR/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 --expect100-timeout 99
 </command>
 </client>
 
index fcd4b96446f0b4b2b89815e53bb9b8864d5148e7..e7e4e6160aa2c01ba7303ff556ce654a906bad6a 100644 (file)
@@ -51,7 +51,7 @@ http
 HTTP PUT with Expect: 100-continue and 417 response
 </name>
 <command>
-http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt --expect100-timeout 999
+http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt --expect100-timeout 99
 </command>
 # 1053700 x 'x', large enough to invoke the 100-continue behaviour
 <file name="%LOGDIR/test%TESTNUMBER.txt">