diff --git a/tests/Testcontainers.LowkeyVault.Tests/LowkeyVaultContainerTest.cs b/tests/Testcontainers.LowkeyVault.Tests/LowkeyVaultContainerTest.cs index 34c682c72..b21911062 100644 --- a/tests/Testcontainers.LowkeyVault.Tests/LowkeyVaultContainerTest.cs +++ b/tests/Testcontainers.LowkeyVault.Tests/LowkeyVaultContainerTest.cs @@ -188,7 +188,7 @@ private static async Task VerifyTokenEndpointIsWorking(string endpointUrl, HttpC try { using var response = await httpClient.SendAsync(request); - Assert.Equal(200, (int)response.StatusCode); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); } catch (Exception ex) { diff --git a/tests/Testcontainers.LowkeyVault.Tests/Usings.cs b/tests/Testcontainers.LowkeyVault.Tests/Usings.cs index 02f38184b..2f22ce11f 100644 --- a/tests/Testcontainers.LowkeyVault.Tests/Usings.cs +++ b/tests/Testcontainers.LowkeyVault.Tests/Usings.cs @@ -6,8 +6,9 @@ global using DotNet.Testcontainers.Commons; global using System; global using System.Linq; +global using System.Net; global using System.Net.Http; global using System.Security.Cryptography.X509Certificates; global using System.Threading; global using System.Threading.Tasks; -global using Xunit; +global using Xunit; \ No newline at end of file