Skip to content

Commit 03a7162

Browse files
committed
add test descriptions back to code
1 parent 5950354 commit 03a7162

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Microsoft.Health.Fhir.CosmosDb.UnitTests/Features/Health/CosmosHealthCheckTests.cs

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ public async Task GivenCosmosDbCanBeQueried_WhenHealthIsChecked_ThenHealthyState
6666
[InlineData(typeof(CosmosException))]
6767
public async Task GivenCosmosDb_WhenRetryableExceptionIsAlwaysThrown_ThenUnhealthyStateShouldBeReturned(Type exceptionType)
6868
{
69+
// This test simulates that all Health Check calls result in OperationCanceledExceptions.
70+
// And all retries should fail.
71+
6972
// Arrange
7073
Exception exception;
7174

@@ -104,6 +107,9 @@ public async Task GivenCosmosDb_WhenRetryableExceptionIsAlwaysThrown_ThenUnhealt
104107
[InlineData(typeof(CosmosException))]
105108
public async Task GivenCosmosDb_WhenRetryableExceptionIsOnceThrown_ThenHealthyStateShouldBeReturned(Type exceptionType)
106109
{
110+
// This test simulates that the first call to Health Check results in an OperationCanceledException.
111+
// The first attempt should fail, but the next ones should pass.
112+
107113
// Arrange
108114
Exception exception;
109115

0 commit comments

Comments
 (0)