[tests] Skip a few networking tests on macOS 10.9. Fixes #xamarin/maccore@2221. (#9022)

Fixes https://github.com/xamarin/maccore/issues/2221.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
This commit is contained in:
monojenkins 2020-07-07 09:56:32 -04:00 коммит произвёл GitHub
Родитель 410de802d6
Коммит 069f4a4628
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -142,6 +142,9 @@ namespace MonoTouchFixtures.Foundation {
Assert.Ignore ("NSData.FromUrl doesn't seem to work in watchOS");
}
#endif
// Https seems broken on our macOS 10.9 bot, so skip this test.
TestRuntime.AssertSystemVersion (PlatformName.MacOSX, 10, 10, throwIfOtherPlatform: false);
// we have network issues, try several urls, if one works, be happy, else fail
for (var i = 0; i < NetworkResources.RobotsUrls.Length; i++) {
NSError error;

Просмотреть файл

@ -70,6 +70,9 @@ namespace MonoTouchFixtures.Foundation {
[Test]
public void RegistrarTest ()
{
// Networking seems broken on our macOS 10.9 bot, so skip this test.
TestRuntime.AssertSystemVersion (PlatformName.MacOSX, 10, 10, throwIfOtherPlatform: false);
Exception ex = null;
var done = new ManualResetEvent (false);
var success = false;

Просмотреть файл

@ -28,6 +28,12 @@ namespace MonoTests.System.Net.Http
[TestFixture]
public class MessageHandlerTest
{
public MessageHandlerTest ()
{
// Https seems broken on our macOS 10.9 bot, so skip this test.
TestRuntime.AssertSystemVersion (PlatformName.MacOSX, 10, 10, throwIfOtherPlatform: false);
}
void PrintHandlerToTest ()
{
#if !__WATCHOS__