mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
PM-10600: Throw Xunit assert exception when sending request via BaseIdentityClientService
SendAsync in BaseIdentityClientService never throws exception. Ideally this behaviour should be changed, and the method should throw error on any failure, but it's not in scope of change. Will be fixed by PM-14675
This commit is contained in:
parent
98fbe1f110
commit
7bea641b0e
@ -90,6 +90,12 @@ public abstract class BaseIdentityClientService : IDisposable
|
|||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
_logger.LogError(12334, e, "Failed to send to {0}.", message.RequestUri.ToString());
|
_logger.LogError(12334, e, "Failed to send to {0}.", message.RequestUri.ToString());
|
||||||
|
// Throw for testing purposes
|
||||||
|
// TODO Fixed by https://bitwarden.atlassian.net/browse/PM-14675
|
||||||
|
if (e.GetType().Namespace?.StartsWith("Xunit") ?? false)
|
||||||
|
{
|
||||||
|
throw;
|
||||||
|
}
|
||||||
return default;
|
return default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user