Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Oct 11, 2024
1 parent 33b9520 commit 08c97ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Exceptionless.Tests/IntegrationTestsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected virtual void RegisterServices(IServiceCollection services)
// use xunit test logger
services.AddSingleton<ILoggerFactory>(Log);
services.AddSingleton(typeof(ILogger<>), typeof(Logger<>));
services.AddSingleton<TimeProvider, ProxyTimeProvider>(_ => new ProxyTimeProvider());
services.ReplaceSingleton<TimeProvider>(_ => new ProxyTimeProvider());

services.AddSingleton<IMailer, NullMailer>();
services.AddSingleton<IDomainLoginProvider, TestDomainLoginProvider>();
Expand Down
3 changes: 2 additions & 1 deletion tests/Exceptionless.Tests/TestWithServices.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Exceptionless.Core;
using Exceptionless.Core.Authentication;
using Exceptionless.Core.Extensions;
using Exceptionless.Core.Mail;
using Exceptionless.Helpers;
using Exceptionless.Insulation.Configuration;
Expand Down Expand Up @@ -59,9 +60,9 @@ protected virtual void RegisterServices(IServiceCollection services, AppOptions
{
services.AddSingleton<ILoggerFactory>(Log);
services.AddSingleton(typeof(ILogger<>), typeof(Logger<>));
services.AddSingleton<TimeProvider, ProxyTimeProvider>(_ => new ProxyTimeProvider());
Web.Bootstrapper.RegisterServices(services, options, Log);
Bootstrapper.RegisterServices(services, options);
services.ReplaceSingleton<TimeProvider>(_ => new ProxyTimeProvider());
services.AddSingleton<IMailer, NullMailer>();
services.AddSingleton<IDomainLoginProvider, TestDomainLoginProvider>();

Expand Down

0 comments on commit 08c97ea

Please sign in to comment.