mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 10:35:28 +08:00 
			
		
		
		
	change to firm up consul tests
This commit is contained in:
		@@ -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()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user