Reformat/cleanup
All checks were successful
NuGet Package Publish / nuget (push) Successful in 1m10s
All checks were successful
NuGet Package Publish / nuget (push) Successful in 1m10s
This commit is contained in:
@@ -9,7 +9,7 @@ namespace ZB.MOM.WW.CBDDC.Hosting.Tests;
|
||||
public class CBDDCHealthCheckTests
|
||||
{
|
||||
/// <summary>
|
||||
/// Verifies that health is reported as healthy when persistence is available and all peers are within lag thresholds.
|
||||
/// Verifies that health is reported as healthy when persistence is available and all peers are within lag thresholds.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task CheckHealthAsync_WhenPersistenceOkAndPeersWithinLagThreshold_ReturnsHealthyWithPayload()
|
||||
@@ -52,7 +52,7 @@ public class CBDDCHealthCheckTests
|
||||
var healthCheck = new CBDDCHealthCheck(
|
||||
store,
|
||||
confirmationStore,
|
||||
CreateOptions(lagThresholdMs: 20, criticalLagThresholdMs: 50));
|
||||
CreateOptions(20, 50));
|
||||
|
||||
var result = await healthCheck.CheckHealthAsync(new HealthCheckContext());
|
||||
|
||||
@@ -69,7 +69,7 @@ public class CBDDCHealthCheckTests
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies that health is reported as degraded when at least one peer is lagging or has no confirmation.
|
||||
/// Verifies that health is reported as degraded when at least one peer is lagging or has no confirmation.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task CheckHealthAsync_WhenPeersLaggingOrUnconfirmed_ReturnsDegradedWithPayload()
|
||||
@@ -113,7 +113,7 @@ public class CBDDCHealthCheckTests
|
||||
var healthCheck = new CBDDCHealthCheck(
|
||||
store,
|
||||
confirmationStore,
|
||||
CreateOptions(lagThresholdMs: 30, criticalLagThresholdMs: 100));
|
||||
CreateOptions(30, 100));
|
||||
|
||||
var result = await healthCheck.CheckHealthAsync(new HealthCheckContext());
|
||||
|
||||
@@ -130,7 +130,7 @@ public class CBDDCHealthCheckTests
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies that health is reported as unhealthy when critical lag threshold is exceeded.
|
||||
/// Verifies that health is reported as unhealthy when critical lag threshold is exceeded.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task CheckHealthAsync_WhenCriticalLagBreached_ReturnsUnhealthyWithPayload()
|
||||
@@ -158,7 +158,7 @@ public class CBDDCHealthCheckTests
|
||||
var healthCheck = new CBDDCHealthCheck(
|
||||
store,
|
||||
confirmationStore,
|
||||
CreateOptions(lagThresholdMs: 30, criticalLagThresholdMs: 80));
|
||||
CreateOptions(30, 80));
|
||||
|
||||
var result = await healthCheck.CheckHealthAsync(new HealthCheckContext());
|
||||
|
||||
@@ -168,7 +168,7 @@ public class CBDDCHealthCheckTests
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies that worst-case lag is used when a peer has multiple source confirmations.
|
||||
/// Verifies that worst-case lag is used when a peer has multiple source confirmations.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task CheckHealthAsync_WhenPeerHasMultipleSourceConfirmations_UsesWorstCaseLag()
|
||||
@@ -205,7 +205,7 @@ public class CBDDCHealthCheckTests
|
||||
var healthCheck = new CBDDCHealthCheck(
|
||||
store,
|
||||
confirmationStore,
|
||||
CreateOptions(lagThresholdMs: 80, criticalLagThresholdMs: 150));
|
||||
CreateOptions(80, 150));
|
||||
|
||||
var result = await healthCheck.CheckHealthAsync(new HealthCheckContext());
|
||||
|
||||
@@ -215,7 +215,7 @@ public class CBDDCHealthCheckTests
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verifies that health is reported as unhealthy when the persistence store throws.
|
||||
/// Verifies that health is reported as unhealthy when the persistence store throws.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async Task CheckHealthAsync_WhenStoreThrows_ReturnsUnhealthy()
|
||||
@@ -253,4 +253,4 @@ public class CBDDCHealthCheckTests
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user