Skip to content

Commit

Permalink
Fix issue and test after cherry-pick.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lievrouw committed Mar 15, 2020
1 parent bc42f04 commit 20fd3e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public ConsulFileConfigurationRepository(
_configurationKey = string.IsNullOrWhiteSpace(serviceDiscoveryProvider.ConfigurationKey) ? "InternalConfiguration" :
serviceDiscoveryProvider.ConfigurationKey;

var config = new ConsulRegistryConfiguration(serviceDiscoveryProvider.Host,
var config = new ConsulRegistryConfiguration(serviceDiscoveryProvider.Scheme, serviceDiscoveryProvider.Host,
serviceDiscoveryProvider.Port, _configurationKey, serviceDiscoveryProvider.Token);

_consul = factory.Get(config);
Expand Down
2 changes: 1 addition & 1 deletion test/Ocelot.UnitTests/Consul/ProviderFactoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void should_return_PollingConsulServiceDiscoveryProvider()
.WithServiceName("")
.Build();

var provider = ConsulProviderFactory.Get(_provider, new ServiceProviderConfiguration("pollconsul", "", 1, "", "", stopsPollerFromPolling), reRoute);
var provider = ConsulProviderFactory.Get(_provider, new ServiceProviderConfiguration("pollconsul", "http", "", 1, "", "", stopsPollerFromPolling), reRoute);
var pollProvider = provider as PollConsul;
pollProvider.ShouldNotBeNull();
pollProvider.Dispose();
Expand Down

0 comments on commit 20fd3e0

Please sign in to comment.