Address validation feedback
Agent-Logs-Url: https://github.com/elsa-workflows/elsa-core/sessions/6a652ca4-f0c8-4284-938d-6de0eb7a2bea Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
This commit is contained in:
parent
8c1618b5d4
commit
12408cca37
|
|
@ -18,6 +18,7 @@ public class ElsaWorkflowPersistenceHealthCheck(IServiceProvider serviceProvider
|
|||
/// <inheritdoc />
|
||||
public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
|
||||
{
|
||||
// These probes verify store reachability only; returned entities and counts are intentionally ignored.
|
||||
var probeResults = new List<ProbeResult>
|
||||
{
|
||||
await ProbeAsync("workflow-definitions", serviceProvider.GetService<IWorkflowDefinitionStore>(), async (store, ct) =>
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public class ElsaDistributedLockHealthCheckTests
|
|||
await sut.CheckHealthAsync(new HealthCheckContext());
|
||||
|
||||
Assert.Equal(2, lockNames.Count);
|
||||
Assert.All(lockNames, x => Assert.DoesNotContain(Environment.MachineName, x, StringComparison.Ordinal));
|
||||
Assert.All(lockNames, x => Assert.DoesNotContain(Environment.MachineName, x, StringComparison.OrdinalIgnoreCase));
|
||||
Assert.NotEqual(lockNames[0], lockNames[1]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue