mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-06 14:22:55 +01:00
Provide NoResult instead of Fail in CustomAuthenticationHandler
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user