Skip to content

Commit

Permalink
Update package version
Browse files Browse the repository at this point in the history
  • Loading branch information
Odonno committed Jan 27, 2024
1 parent af540bd commit 460d05c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/HealthChecks.SurrealDb/HealthChecks.SurrealDb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="8.0.0-rc.1.23421.29" />
<PackageReference Include="SurrealDb.Net" Version="0.2.0" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="8.0.0" />
<PackageReference Include="SurrealDb.Net" Version="0.3.1" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void add_health_check_when_properly_configured()
}

[Fact]
public void invoke_beforeOpen_when_defined()
public async Task invoke_beforeOpen_when_defined()
{
var services = new ServiceCollection();
bool invoked = false;
Expand All @@ -42,7 +42,7 @@ void beforeOpen(ISurrealDbClient client)
var registration = options.Value.Registrations.First();
var check = registration.Factory(serviceProvider);

Record.ExceptionAsync(() => check.CheckHealthAsync(new HealthCheckContext())).GetAwaiter().GetResult();
await Record.ExceptionAsync(() => check.CheckHealthAsync(new HealthCheckContext()));
invoked.ShouldBeTrue();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public async Task be_healthy_if_surrealdb_is_available()

using var server = new TestServer(webHostBuilder);

using var response = await server.CreateRequest("/health").GetAsync().ConfigureAwait(false);
using var response = await server.CreateRequest("/health").GetAsync();

response.StatusCode.ShouldBe(HttpStatusCode.OK);
}
Expand All @@ -51,7 +51,7 @@ public async Task be_unhealthy_if_surrealdb_is_not_available()

using var server = new TestServer(webHostBuilder);

using var response = await server.CreateRequest("/health").GetAsync().ConfigureAwait(false);
using var response = await server.CreateRequest("/health").GetAsync();

response.StatusCode.ShouldBe(HttpStatusCode.ServiceUnavailable);
}
Expand All @@ -77,7 +77,7 @@ public async Task be_unhealthy_if_surql_query_throw_error()

using var server = new TestServer(webHostBuilder);

using var response = await server.CreateRequest("/health").GetAsync().ConfigureAwait(false);
using var response = await server.CreateRequest("/health").GetAsync();

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

0 comments on commit 460d05c

Please sign in to comment.