Skip to content

Commit 20fd3e0

Browse files
author
David Lievrouw
committed
Fix issue and test after cherry-pick.
1 parent bc42f04 commit 20fd3e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Ocelot.Provider.Consul/ConsulFileConfigurationRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public ConsulFileConfigurationRepository(
3131
_configurationKey = string.IsNullOrWhiteSpace(serviceDiscoveryProvider.ConfigurationKey) ? "InternalConfiguration" :
3232
serviceDiscoveryProvider.ConfigurationKey;
3333

34-
var config = new ConsulRegistryConfiguration(serviceDiscoveryProvider.Host,
34+
var config = new ConsulRegistryConfiguration(serviceDiscoveryProvider.Scheme, serviceDiscoveryProvider.Host,
3535
serviceDiscoveryProvider.Port, _configurationKey, serviceDiscoveryProvider.Token);
3636

3737
_consul = factory.Get(config);

test/Ocelot.UnitTests/Consul/ProviderFactoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void should_return_PollingConsulServiceDiscoveryProvider()
4848
.WithServiceName("")
4949
.Build();
5050

51-
var provider = ConsulProviderFactory.Get(_provider, new ServiceProviderConfiguration("pollconsul", "", 1, "", "", stopsPollerFromPolling), reRoute);
51+
var provider = ConsulProviderFactory.Get(_provider, new ServiceProviderConfiguration("pollconsul", "http", "", 1, "", "", stopsPollerFromPolling), reRoute);
5252
var pollProvider = provider as PollConsul;
5353
pollProvider.ShouldNotBeNull();
5454
pollProvider.Dispose();

0 commit comments

Comments
 (0)