[HttpWebRequest] Add timeout tests that cover BNC#317553 (ximian #74177)
authorAndres G. Aragoneses <knocte@gmail.com>
Sat, 20 Apr 2013 13:29:37 +0000 (14:29 +0100)
committerAndres G. Aragoneses <knocte@gmail.com>
Sat, 20 Apr 2013 13:29:37 +0000 (14:29 +0100)
commit96be7828510a1fb14dab07eed1e93dc1a3a7dd84
tree507f24d2983b018bd0dba7516f8189935824986d
parentefda0d4c622664b616005e45e549c99d2946d87f
[HttpWebRequest] Add timeout tests that cover BNC#317553 (ximian #74177)

The pull-request that was merged [1] intending to fix BXC#1183 [2] was
later reverted [3] because it broke a scenario that wasn't covered by tests.

This commits creates a couple of tests that cover this scenario (which was
implemented back in 2005 [4]) so that we are sure that any further proposed
fixes for bug 1183 [2] don't cause any regression in this area.

[1] https://github.com/mono/mono/commit/8c2167d52cb9acf9582647ebb5f99c92d9127fbd
[2] https://bugzilla.xamarin.com/show_bug.cgi?id=11833
[3] https://github.com/mono/mono/commit/14f0405443693ec2586e73e4b3746134046210d5
[4] https://bugzilla.novell.com/show_bug.cgi?id=317553
mcs/class/System/Test/System.Net/HttpWebRequestTest.cs