Merge pull request #1478 from dennisreimann/assert-link-not-dead

Improve AssertLinkNotDead test output in case of exception
This commit is contained in:
Nicolas Dorier 2020-04-19 03:10:45 +09:00 committed by GitHub
commit 778bf97079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,9 +158,11 @@ namespace BTCPayServer.Tests
Assert.Equal(HttpStatusCode.OK, (await httpClient.SendAsync(request)).StatusCode); Assert.Equal(HttpStatusCode.OK, (await httpClient.SendAsync(request)).StatusCode);
Logs.Tester.LogInformation($"OK: {url} ({file})"); 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; throw;
} }
} }