From 148207e2d76c75dec101479adc947f1734c78139 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 21 Mar 2015 23:57:32 +0100 Subject: [PATCH] test1513: eliminated race condition in test run 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. --- tests/data/test1513 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/data/test1513 b/tests/data/test1513 index 4a63f18064..8abb96fa60 100644 --- a/tests/data/test1513 +++ b/tests/data/test1513 @@ -7,16 +7,20 @@ PROGRESSFUNCTION # Server-side + +HTTP/1.1 204 PARTIAL +X-Comment: partial response to keep the client waiting + + +wait 10 + # Client-side -none - - http - + lib1513 @@ -26,7 +30,7 @@ return failure immediately from progress callback # this server/host won't be used for real -http://localhost/1513 +http://%HOSTIP:%HTTPPORT/1513