]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test587: add a slight delay after test
authorDan Fandrich <dan@coneharvesters.com>
Mon, 11 Sep 2023 23:38:46 +0000 (16:38 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 13 Sep 2023 18:26:08 +0000 (11:26 -0700)
This test is designed to connect to the server, then immediately send a
few bytes and disconnect. In some situations, such as on a loaded
server, this doesn't give the server enough time to write its lock file
before its existence is checked. The test harness then fails to find the
server's input log file (because it hasn't been written yet) and fails
the test. By adding a short delay after the test, the HTTP server has
enough time to write its lock file which gives itself more time to write
its remaining files.

Ref: #11328

tests/data/test587

index ff11184a36526f836a9440a58341a5c5aade9a1e..2fc8a7357777c6f79647709cc2c14aeee288d97a 100644 (file)
@@ -31,7 +31,9 @@ lib%TESTNUMBER
  <name>
 HTTP multi-part formpost with aborted read callback
  </name>
- <command>
+# Add a delay to give server time to write its output since we otherwise might
+# not even give it enough time to write its lock file.
+ <command delay="1">
 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
 </command>
 </client>