diff options
| author | crobibero <cody@robibe.ro> | 2020-12-01 06:32:46 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-12-01 06:32:46 -0700 |
| commit | 38b3b4f8672373c8e1ac2e509d759fe07d179146 (patch) | |
| tree | fbf77de846c0747e5ae00eb19c3f775c2965f9f8 /tests | |
| parent | 0a35f35311980b79e867fa51d5861356cb08e729 (diff) | |
Provide NoResult instead of Fail in CustomAuthenticationHandler
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs b/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs index 90c4916668..ee20cc5738 100644 --- a/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs +++ b/tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs @@ -69,7 +69,7 @@ namespace Jellyfin.Api.Tests.Auth } [Fact] - public async Task HandleAuthenticateAsyncShouldFailOnAuthenticationException() + public async Task HandleAuthenticateAsyncShouldProvideNoResultOnAuthenticationException() { var errorMessage = _fixture.Create<string>(); @@ -81,7 +81,7 @@ namespace Jellyfin.Api.Tests.Auth var authenticateResult = await _sut.AuthenticateAsync(); Assert.False(authenticateResult.Succeeded); - Assert.Equal(errorMessage, authenticateResult.Failure?.Message); + Assert.True(authenticateResult.None); } [Fact] |
