Skip to content

Commit

Permalink
test1513: eliminated race condition in test run
Browse files Browse the repository at this point in the history
It seems that some systems (e.g. fairly consistently in some recent
Solaris autobuilds) would manage to get to the connect phase before the
progress callback was called, resulting in a CURLE_COULDNT_CONNECT
error. Reworked the test to point at a test server that never returns a
full result so the progress callback always gets a chance to be called
before the transfer can complete in some other way.
  • Loading branch information
dfandrich committed Mar 21, 2015
1 parent 7f5a170 commit 148207e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/data/test1513
Expand Up @@ -7,16 +7,20 @@ PROGRESSFUNCTION

# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 204 PARTIAL
X-Comment: partial response to keep the client waiting
</data>
<postcmd>
wait 10
</postcmd>
</reply>

# Client-side
<client>
<server>
none
</server>
<features>
http
</features>
</server>
<tool>
lib1513
</tool>
Expand All @@ -26,7 +30,7 @@ return failure immediately from progress callback

# this server/host won't be used for real
<command>
http://localhost/1513
http://%HOSTIP:%HTTPPORT/1513
</command>
</client>

Expand Down

0 comments on commit 148207e

Please sign in to comment.