mirror of
https://github.com/curl/curl.git
synced 2025-03-31 16:00:35 +08:00
tests: set --expect100-timeout to improve test reliability
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
This commit is contained in:
parent
7c8efbfd5d
commit
61c8f1edc3
@ -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,
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user