mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
change to firm up consul tests
This commit is contained in:
parent
a2c7fda4c9
commit
54c7464919
@ -40,7 +40,7 @@ namespace Ocelot.Configuration.Repository
|
|||||||
_polling = true;
|
_polling = true;
|
||||||
await Poll();
|
await Poll();
|
||||||
_polling = false;
|
_polling = false;
|
||||||
}, null, 0, _config.Delay);
|
}, null, _config.Delay, _config.Delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task Poll()
|
private async Task Poll()
|
||||||
|
@ -17,11 +17,11 @@ namespace Ocelot.UnitTests.Configuration
|
|||||||
{
|
{
|
||||||
public class ConsulFileConfigurationPollerTests : IDisposable
|
public class ConsulFileConfigurationPollerTests : IDisposable
|
||||||
{
|
{
|
||||||
private ConsulFileConfigurationPoller _poller;
|
private readonly ConsulFileConfigurationPoller _poller;
|
||||||
private Mock<IOcelotLoggerFactory> _factory;
|
private Mock<IOcelotLoggerFactory> _factory;
|
||||||
private Mock<IFileConfigurationRepository> _repo;
|
private readonly Mock<IFileConfigurationRepository> _repo;
|
||||||
private Mock<IFileConfigurationSetter> _setter;
|
private readonly Mock<IFileConfigurationSetter> _setter;
|
||||||
private FileConfiguration _fileConfig;
|
private readonly FileConfiguration _fileConfig;
|
||||||
private Mock<IConsulPollerConfiguration> _config;
|
private Mock<IConsulPollerConfiguration> _config;
|
||||||
|
|
||||||
public ConsulFileConfigurationPollerTests()
|
public ConsulFileConfigurationPollerTests()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user