mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 11:35:51 +01:00
Make test CheckNoDeadLink less flaky
This commit is contained in:
parent
7f13f6f915
commit
909fc71543
1 changed files with 5 additions and 0 deletions
|
@ -389,6 +389,11 @@ namespace BTCPayServer.Tests
|
|||
request.Headers.TryAddWithoutValidation("User-Agent",
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0");
|
||||
var response = await httpClient.SendAsync(request);
|
||||
if (response.StatusCode == HttpStatusCode.ServiceUnavailable) // Temporary issue
|
||||
{
|
||||
Logs.Tester.LogInformation($"Unavailable: {url} ({file})");
|
||||
return;
|
||||
}
|
||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||
if (uri.Fragment.Length != 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue