Sorry I missed your message!
Just incase this is still helpful, or might be helpful to someone googling...
If I'm understanding correctly, and you want to know how to write the server portion of this test, IIRC I was using the equivalent of calling sleep() to delay sending the response on the server. So, if the timeout is 10 seconds, the server end waits 15 seconds before sending the response. In languages designed for concurrency this would probably be no big deal, but in my setup this would kill my server if too many people ran it at once, which is why it isn't available for you to try.
At some point, I'd like to publish the source for all the tests, but I haven't got around to it yet.
Best
Ben
> I've just been messing around with the 'timeout seconds' setting to
> get the requests to timeout in my unit tests so far.
Incidentally, I think GHUnit (the testing framework ASIHTTPRequest uses) recently got some new features that look very helpful for writing asynchronous tests. If you aren't already using GHUnit for your own tests, I can certainly recommend it.
> It will be great when you publish your test code, it will give a more
> complete set of unit tests.
I'll add it to the to do list.
Best
Ben