From 6b67250c2e08ebc3e92c7107d1fb47ed314dc89e Mon Sep 17 00:00:00 2001 From: Raman Maksimchuk Date: Fri, 20 Dec 2024 14:17:44 +0300 Subject: [PATCH] Fix build errors, warnings, messages after rebasing --- test/Ocelot.Benchmarks/JsonSerializerBenchmark.cs | 2 -- test/Ocelot.Benchmarks/Ocelot.Benchmarks.csproj | 1 - .../DependencyInjection/OcelotBuilderTests.cs | 6 +++--- test/Ocelot.UnitTests/JsonSerializerOptionsFactoryTests.cs | 1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/test/Ocelot.Benchmarks/JsonSerializerBenchmark.cs b/test/Ocelot.Benchmarks/JsonSerializerBenchmark.cs index 046bb47a2..37c6f3036 100644 --- a/test/Ocelot.Benchmarks/JsonSerializerBenchmark.cs +++ b/test/Ocelot.Benchmarks/JsonSerializerBenchmark.cs @@ -76,8 +76,6 @@ public void MicrosoftDeserializeBigData() // |==============================================================================================================================================| // | MicrosoftSerializeBigData | 1000 | 646.4 us | 12.72 us | 20.90 us | 645.7 us | 1,546.9 | 110.3516 | 110.3516 | 110.3516 | 350.02 KB | // | NewtonsoftSerializeBigData | 1000 | 1,033.4 us | 19.37 us | 42.53 us | 1,022.8 us | 967.7 | 109.3750 | 109.3750 | 109.3750 | 837.82 KB | - - public class User { public Guid UserId { get; set; } diff --git a/test/Ocelot.Benchmarks/Ocelot.Benchmarks.csproj b/test/Ocelot.Benchmarks/Ocelot.Benchmarks.csproj index e18d87e72..21d46e681 100644 --- a/test/Ocelot.Benchmarks/Ocelot.Benchmarks.csproj +++ b/test/Ocelot.Benchmarks/Ocelot.Benchmarks.csproj @@ -25,7 +25,6 @@ - diff --git a/test/Ocelot.UnitTests/DependencyInjection/OcelotBuilderTests.cs b/test/Ocelot.UnitTests/DependencyInjection/OcelotBuilderTests.cs index 010751832..7fc9fa8dc 100644 --- a/test/Ocelot.UnitTests/DependencyInjection/OcelotBuilderTests.cs +++ b/test/Ocelot.UnitTests/DependencyInjection/OcelotBuilderTests.cs @@ -324,9 +324,9 @@ private void CstorShouldUseDefaultBuilderToInitMvcCoreBuilder() .GetType().Name.ShouldBe("AuthorizationApplicationModelProvider"); // use system text json - _serviceProvider.GetServices>() - .FirstOrDefault(s => s.GetType().Name == "SystemTextJsonResultExecutor") - .ShouldNotBeNull(); + _serviceProvider.GetServices>() + .FirstOrDefault(s => s.GetType().Name == "SystemTextJsonResultExecutor") + .ShouldNotBeNull(); } [Fact] diff --git a/test/Ocelot.UnitTests/JsonSerializerOptionsFactoryTests.cs b/test/Ocelot.UnitTests/JsonSerializerOptionsFactoryTests.cs index 0647bffac..9e00d5fcc 100644 --- a/test/Ocelot.UnitTests/JsonSerializerOptionsFactoryTests.cs +++ b/test/Ocelot.UnitTests/JsonSerializerOptionsFactoryTests.cs @@ -68,4 +68,3 @@ public void should_json_path_nested_null() result.ShouldBeEquivalentTo(new List { "Nice post!", "Interesting." }); } } -