Commit 224ad26
authored
[tests] ignore network errors in
Context: 455ec0a
Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=11188869&view=ms.vss-test-web.build-test-results-tab&runId=124545813&resultId=100000&paneView=debug
The `InstallAndRunTests.CustomLinkDescriptionPreserve()` test can
randomly fail with:
I XALINKERTESTS: [FAIL] HttpClientTest.Post FAILED: System.Net.Http.HttpRequestException: net_http_message_not_success_statuscode_reason, 503, Service Temporarily Unavailable
I XALINKERTESTS: at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
I XALINKERTESTS: at HttpClientTest.Post()
I updated `HttpClientTest.Post()` to print an `[IGNORE]` result when
it encounters HTTP-500 errors (.InternalServerError, .BadGateway,
.ServiceUnavailable, .GatewayTimeout), similar to 455ec0a.CustomLinkDescriptionPreserve (#9915)1 parent b11471b commit 224ad26
File tree
1 file changed
+10
-5
lines changed- tests/MSBuildDeviceIntegration/Resources/LinkDescTest
1 file changed
+10
-5
lines changedLines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
| |||
0 commit comments