mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 12:10:50 +08:00 
			
		
		
		
	Feature/fix unstable int tests (#376)
* updated packages but build wont work * #245 implementing more stable rafty * #245 OK so these raft integration tests are passing everytime on my local mac now...lets see about the build servergit log * #245 added donation button * #245 removed file we dont need
This commit is contained in:
		@@ -15,6 +15,7 @@ using Ocelot.Configuration;
 | 
			
		||||
namespace Ocelot.UnitTests.Controllers
 | 
			
		||||
{
 | 
			
		||||
    using Ocelot.Configuration.Repository;
 | 
			
		||||
    using Rafty.Concensus.Node;
 | 
			
		||||
 | 
			
		||||
    public class FileConfigurationControllerTests
 | 
			
		||||
    {
 | 
			
		||||
@@ -126,14 +127,14 @@ namespace Ocelot.UnitTests.Controllers
 | 
			
		||||
        {
 | 
			
		||||
            _node
 | 
			
		||||
                .Setup(x => x.Accept(It.IsAny<UpdateFileConfiguration>()))
 | 
			
		||||
                .ReturnsAsync(new Rafty.Concensus.OkResponse<UpdateFileConfiguration>(new UpdateFileConfiguration(new FileConfiguration())));
 | 
			
		||||
                .ReturnsAsync(new Rafty.Infrastructure.OkResponse<UpdateFileConfiguration>(new UpdateFileConfiguration(new FileConfiguration())));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private void GivenTheNodeReturnsError()
 | 
			
		||||
        {
 | 
			
		||||
            _node
 | 
			
		||||
                .Setup(x => x.Accept(It.IsAny<UpdateFileConfiguration>()))
 | 
			
		||||
                .ReturnsAsync(new Rafty.Concensus.ErrorResponse<UpdateFileConfiguration>("error", new UpdateFileConfiguration(new FileConfiguration())));
 | 
			
		||||
                .ReturnsAsync(new Rafty.Infrastructure.ErrorResponse<UpdateFileConfiguration>("error", new UpdateFileConfiguration(new FileConfiguration())));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private void GivenTheConfigSetterReturns(Response response)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user