mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Merge pull request #1478 from dennisreimann/assert-link-not-dead
Improve AssertLinkNotDead test output in case of exception
This commit is contained in:
commit
778bf97079
1 changed files with 4 additions and 2 deletions
|
@ -158,9 +158,11 @@ namespace BTCPayServer.Tests
|
|||
Assert.Equal(HttpStatusCode.OK, (await httpClient.SendAsync(request)).StatusCode);
|
||||
Logs.Tester.LogInformation($"OK: {url} ({file})");
|
||||
}
|
||||
catch (EqualException ex)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logs.Tester.LogInformation($"FAILED: {url} ({file}) {ex.Actual}");
|
||||
var details = ex is EqualException ? (ex as EqualException).Actual : ex.Message;
|
||||
Logs.Tester.LogInformation($"FAILED: {url} ({file}) {details}");
|
||||
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue