mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
Fix tests
This commit is contained in:
parent
1e8e7ec4a4
commit
f958550061
1 changed files with 13 additions and 6 deletions
|
@ -235,6 +235,12 @@ namespace BTCPayServer.Tests
|
|||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0");
|
||||
using var cts = new CancellationTokenSource(5_000);
|
||||
var response = await httpClient.SendAsync(request, cts.Token);
|
||||
if (response.StatusCode == HttpStatusCode.TooManyRequests)
|
||||
{
|
||||
TestLogs.LogInformation($"TooManyRequests, skipping: {url} ({file})");
|
||||
}
|
||||
else
|
||||
{
|
||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||
if (uri.Fragment.Length != 0)
|
||||
{
|
||||
|
@ -245,6 +251,7 @@ namespace BTCPayServer.Tests
|
|||
|
||||
TestLogs.LogInformation($"OK: {url} ({file})");
|
||||
}
|
||||
}
|
||||
catch (Exception ex) when (ex is MatchesException)
|
||||
{
|
||||
var details = ex.Message;
|
||||
|
|
Loading…
Add table
Reference in a new issue