From 9e626a972d09e3f1122230ade5a7453efaa0f84d Mon Sep 17 00:00:00 2001 From: raman-m Date: Thu, 20 Jul 2023 22:52:40 +0300 Subject: [PATCH] code review: fix some messages --- test/Ocelot.IntegrationTests/AdministrationTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/Ocelot.IntegrationTests/AdministrationTests.cs b/test/Ocelot.IntegrationTests/AdministrationTests.cs index d7860b8971..ca4bfd9a8d 100644 --- a/test/Ocelot.IntegrationTests/AdministrationTests.cs +++ b/test/Ocelot.IntegrationTests/AdministrationTests.cs @@ -854,7 +854,7 @@ private static void GivenThereIsAConfiguration(FileConfiguration fileConfigurati File.WriteAllText(configurationPath, jsonConfiguration); - var text = File.ReadAllText(configurationPath); + _ = File.ReadAllText(configurationPath); configurationPath = $"{AppContext.BaseDirectory}/ocelot.json"; @@ -865,7 +865,7 @@ private static void GivenThereIsAConfiguration(FileConfiguration fileConfigurati File.WriteAllText(configurationPath, jsonConfiguration); - text = File.ReadAllText(configurationPath); + _ = File.ReadAllText(configurationPath); } private void WhenIGetUrlOnTheApiGateway(string url) @@ -904,6 +904,7 @@ public void Dispose() _builder?.Dispose(); _httpClient?.Dispose(); _identityServerBuilder?.Dispose(); + GC.SuppressFinalize(this); } private void GivenThereIsAFooServiceRunningOn(string baseUrl)