0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-06-30 02:31:08 +00:00

fix: Allow services to get healthy

This commit is contained in:
alex289 2025-03-16 00:23:50 +01:00
parent 74549806d6
commit f17112657c
No known key found for this signature in database
GPG Key ID: 573F77CD2D87F863

View File

@ -17,6 +17,9 @@ public sealed class HealthChecksTests
[Test, Order(0)] [Test, Order(0)]
public async Task Should_Return_Healthy() public async Task Should_Return_Healthy()
{ {
// Wait some time to let the services get healthy
await Task.Delay(2000);
var response = await _fixture.ServerClient.GetAsync("/healthz"); var response = await _fixture.ServerClient.GetAsync("/healthz");
response.StatusCode.ShouldBe(HttpStatusCode.OK); response.StatusCode.ShouldBe(HttpStatusCode.OK);