-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#349 default to no load balancer so that in load balaner house we don…
…t always rebuild the loadbalancer infrastructure because the load balancer options type is null (#358)
- Loading branch information
1 parent
1e2e953
commit 061a90f
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/Ocelot.UnitTests/LoadBalancer/LoadBalancerOptionsTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Ocelot.Configuration; | ||
using Ocelot.LoadBalancer.LoadBalancers; | ||
using Shouldly; | ||
using Xunit; | ||
|
||
namespace Ocelot.UnitTests.LoadBalancer | ||
{ | ||
public class LoadBalancerOptionsTests | ||
{ | ||
[Fact] | ||
public void should_default_to_no_load_balancer() | ||
{ | ||
var options = new LoadBalancerOptionsBuilder().Build(); | ||
options.Type.ShouldBe(nameof(NoLoadBalancer)); | ||
} | ||
} | ||
} |