Skip to content

Commit

Permalink
revert SqlServer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsitnik committed Nov 23, 2023
1 parent ceb153c commit 3f17483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.2" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.1" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="8.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public async Task be_unhealthy_if_sqlServer_is_not_available()

using var server = new TestServer(webHostBuilder);

using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(30));
using var response = await server.CreateClient().SendAsync(new HttpRequestMessage(HttpMethod.Get, "/health"), cts.Token);
using var response = await server.CreateRequest("/health").GetAsync();

response.StatusCode.ShouldBe(HttpStatusCode.ServiceUnavailable);
}
Expand Down

0 comments on commit 3f17483

Please sign in to comment.