Skip to content

Commit

Permalink
Update the health check options name
Browse files Browse the repository at this point in the history
  • Loading branch information
willibrandon committed Sep 7, 2024
1 parent bafe01a commit af73b29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ public async Task TestCpuAndMemoryChecks(HealthStatus expected, double utilizati
.Returns(new ResourceUtilization(cpuUsedPercentage: utilization, memoryUsedInBytes: memoryUsed, systemResources));

var checkContext = new HealthCheckContext();
var cpuCheckOptions = new ResourceUtilizationHealthCheckOptions
var checkOptions = new ResourceUtilizationHealthCheckOptions
{
CpuThresholds = thresholds,
MemoryThresholds = thresholds,
SamplingWindow = samplingWindow
};

var options = Microsoft.Extensions.Options.Options.Create(cpuCheckOptions);
var options = Microsoft.Extensions.Options.Options.Create(checkOptions);
var healthCheck = new ResourceUtilizationHealthCheck(options, dataTracker.Object);
var healthCheckResult = await healthCheck.CheckHealthAsync(checkContext);
Assert.Equal(expected, healthCheckResult.Status);
Expand Down

0 comments on commit af73b29

Please sign in to comment.