[tests] Disable because URL is no longer there
authorMarek Habersack <grendel@twistedcode.net>
Wed, 24 Jun 2015 21:49:09 +0000 (23:49 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 15 Jul 2015 18:45:27 +0000 (20:45 +0200)
The test relies on presence of a specific file that is now gone. Disabled
until a stable URL is found :P

mcs/class/System/Test/System.Net/ServicePointTest.cs

index bb12a4c28f3eb93112b9ac5e1952a68b9c80fa4a..8c564e246582ecea8532b770916867d45698898b 100644 (file)
@@ -53,10 +53,13 @@ public class ServicePointTest
                HttpWebRequest req = (HttpWebRequest) WebRequest.Create ("http://www.google.com");\r
                HttpWebResponse res = (HttpWebResponse) req.GetResponse ();                     \r
                \r
+#if FOUND_SOME_OTHER_URL
+               // URL is no longer found, disabled the test until a more reliable URL is found :P
                //WriteServicePoint ("google after getting a response", google);\r
                ServicePoint google2 = ServicePointManager.FindServicePoint (new Uri ("http://www.google.com/dilbert.html"));\r
                Assert.AreEqual (google, google2, "#equals");\r
                res.Close ();\r
+#endif
                \r
                // in both instances property CurrentConnections is 0 according to ms.net.\r
                // let's see what it says when we do async operations...\r
@@ -83,10 +86,11 @@ public class ServicePointTest
                //Console.WriteLine ("ContentLength: " + res2.ContentLength);\r
                res2.Close ();\r
                \r
-               \r
+               ServicePoint sp2;
+#if FOUND_SOME_OTHER_URL
                // unless of course some buffering is taking place.. let's check\r
                Uri uri2 = new Uri ("http://freedesktop.org/Software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz");\r
-               ServicePoint sp2 = ServicePointManager.FindServicePoint (uri2);\r
+               sp2 = ServicePointManager.FindServicePoint (uri2);\r
                req2 = (HttpWebRequest) WebRequest.Create (uri2);\r
                async = req2.BeginGetResponse (null, null);\r
                //WriteServicePoint ("Large file: after async BeginGetResponse", sp2);\r
@@ -97,6 +101,7 @@ public class ServicePointTest
                // and so it shows\r
                //Console.WriteLine ("ContentLength: " + res2.ContentLength);\r
                res2.Close ();\r
+#endif
                \r
                \r
                // what's the limit of the cache?\r
@@ -148,6 +153,7 @@ public class ServicePointTest
 \r
        [Test]\r
        [Category ("InetAccess")]\r
+       [Category ("AndroidNotWorking")] // #A1 fails
        public void EndPointBind ()\r
        {\r
                Uri uri = new Uri ("http://www.go-mono.com/");\r
@@ -163,7 +169,7 @@ public class ServicePointTest
                };\r
                req.GetResponse ().Close ();\r
 \r
-               Assert.IsTrue (called);\r
+               Assert.IsTrue (called, "#A1");\r
 \r
                req = (HttpWebRequest) WebRequest.Create (uri);\r
                called = false;\r
@@ -174,7 +180,7 @@ public class ServicePointTest
                };\r
                req.GetResponse ().Close ();\r
 \r
-               Assert.IsTrue (called);\r
+               Assert.IsTrue (called, "#A2");\r
        }\r
 \r
        public static void GetRequestStreamCallback (IAsyncResult asynchronousResult)\r