示例#1
0
        private async Task WaitForCleanup()
        {
            await Task.Delay(100);

            _dateTimeFake.StopDelay();
            await Task.Delay(100);
        }
        public async Task ReturnEmptyListIfConsulNeverResponds()
        {
            ConsulNotResponds();

            var init = GetFirstResult().ConfigureAwait(false);
            await Task.Delay(50);

            _dateTimeFake.StopDelay(); // do not wait 10 seconds for timeout from Consul (in order to make test shorter)
            await init;

            AssertNoEndpoints();
        }
 private void OneSecondPassed()
 {
     _dateTimeFake.StopDelay();
 }