From: Dan Fandrich Date: Mon, 11 Sep 2023 23:38:46 +0000 (-0700) Subject: test587: add a slight delay after test X-Git-Tag: curl-8_4_0~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e2fc007c88e0607b020aba1c1498eb147f4f234;p=thirdparty%2Fcurl.git test587: add a slight delay after test 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 --- diff --git a/tests/data/test587 b/tests/data/test587 index ff11184a36..2fc8a73577 100644 --- a/tests/data/test587 +++ b/tests/data/test587 @@ -31,7 +31,9 @@ lib%TESTNUMBER HTTP multi-part formpost with aborted read callback - +# 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. + http://%HOSTIP:%HTTPPORT/%TESTNUMBER