Skip to content

Commit

Permalink
Merge pull request #27 from NerosoftDev/refactoring/service-bus
Browse files Browse the repository at this point in the history
Disable rabbitmq service bus unit tests on release mode.
  • Loading branch information
Codespilot authored Nov 29, 2023
2 parents c67613f + 2ee48ca commit 9234d1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/Euonia.Bus.RabbitMq.Tests/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public void ConfigureHost(IHostBuilder hostBuilder)
// ConfigureServices(HostBuilderContext hostBuilderContext, IServiceCollection services)
public void ConfigureServices(IServiceCollection services, HostBuilderContext hostBuilderContext)
{
#if DEBUG
services.AddServiceBus(config =>
{
config.RegisterHandlers(Assembly.GetExecutingAssembly());
Expand All @@ -47,6 +48,7 @@ public void ConfigureServices(IServiceCollection services, HostBuilderContext ho
options.RoutingKey = "*";
});
});
#endif
}

//public void Configure(IServiceProvider applicationServices, IIdGenerator idGenerator)
Expand Down

0 comments on commit 9234d1a

Please sign in to comment.