mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-05 00:10:49 +08:00 
			
		
		
		
	removed some code we dont need as not expecting any errors so should just throw an exception to the global handler
This commit is contained in:
		@@ -170,6 +170,15 @@ namespace Ocelot.UnitTests.LoadBalancer
 | 
			
		||||
                .Verify(x => x.Add("OcelotMiddlewareErrors", _getLoadBalancerHouseError.Errors), Times.Once);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
         private void ThenAnErrorSayingReleaseFailedIsSetOnThePipeline()
 | 
			
		||||
        {
 | 
			
		||||
            _scopedRepository
 | 
			
		||||
                .Verify(x => x.Add("OcelotMiddlewareError", true), Times.Once);
 | 
			
		||||
 | 
			
		||||
            _scopedRepository
 | 
			
		||||
                .Verify(x => x.Add("OcelotMiddlewareErrors", It.IsAny<List<Error>>()), Times.Once);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
            private void ThenAnErrorStatingHostAndPortCouldNotBeFoundIsSetOnPipeline()
 | 
			
		||||
        {
 | 
			
		||||
            _scopedRepository
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user