[tests] Allow 502 Bad Gateway as well in the SecureTransportTest.Tls12 test. (#13610)

The "502 Bad Gateway" error occurs sometimes on the bots.

Maybe we should rename it "502 Bad Bot"?
This commit is contained in:
Rolf Bjarne Kvinge 2021-12-21 15:23:15 +01:00 коммит произвёл GitHub
Родитель 0ec6e13566
Коммит f87016ca7d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -226,7 +226,8 @@ namespace MonoTouchFixtures.Security {
string s = Encoding.UTF8.GetString (data, 0, (int) processed);
// The result apparently depends on where you are: I get a 302, the bots get a 200.
Assert.That (s, Does.StartWith ("HTTP/1.0 302 Found").Or.StartWith ("HTTP/1.0 200 OK"), "response");
// Also sometimes it fails with 502 Bad Gateway on the bots
Assert.That (s, Does.StartWith ("HTTP/1.0 302 Found").Or.StartWith ("HTTP/1.0 200 OK").Or.StartWith ("HTTP/1.0 502 Bad Gateway"), "response");
}
}
#endif // !__WATCHOS__