Provide NoResult instead of Fail in CustomAuthenticationHandler

This commit is contained in:
crobibero
2020-12-01 06:32:46 -07:00
parent 0a35f35311
commit 38b3b4f867
2 changed files with 10 additions and 4 deletions

View File

@@ -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]