Skip to content

Commit

Permalink
fix tests after merge from fork (#1744)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyf19 authored Jun 1, 2022
1 parent 1f5c8f9 commit bb1b65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Microsoft.Identity.Web.Test/WebApiExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private void AddMicrosoftIdentityWebApi_TestCommon(IServiceCollection services,
Assert.Contains(services, s => s.ServiceType == typeof(IConfigureOptions<JwtBearerOptions>));
Assert.Contains(services, s => s.ServiceType == typeof(IJwtBearerMiddlewareDiagnostics));
Assert.Equal(ServiceLifetime.Singleton, services.First(s => s.ServiceType == typeof(MicrosoftIdentityIssuerValidatorFactory)).Lifetime);
Assert.Equal(ServiceLifetime.Singleton, services.First(s => s.ServiceType == typeof(IJwtBearerMiddlewareDiagnostics)).Lifetime);
Assert.Equal(ServiceLifetime.Transient, services.First(s => s.ServiceType == typeof(IJwtBearerMiddlewareDiagnostics)).Lifetime);

// JWT options added correctly
var configuredJwtOptions = provider.GetService<IConfigureOptions<JwtBearerOptions>>() as IConfigureNamedOptions<JwtBearerOptions>;
Expand Down

0 comments on commit bb1b65f

Please sign in to comment.