Remove Thread.[Abort|Suspend|Resume] from TvOS/WatchOS.
[mono.git] / mcs / class / System / Test / System.Net / HttpWebRequestTest.cs
index a44034f267578f4d21eb487ce042c5230fbbcebf..20ee8020a98793e2accd2cb40b813d8bc08b4e25 100644 (file)
@@ -1468,7 +1468,11 @@ namespace MonoTests.System.Net
                        Thread.Sleep (three_seconds_in_milliseconds * 3);
 
                        if (timeoutWorker.End == null) {
+#if MONO_FEATURE_THREAD_ABORT
                                thread.Abort ();
+#else
+                               thread.Interrupt ();
+#endif
                                Assert.Fail ("Thread finished after triple the timeout specified has passed");
                        }