File tree 1 file changed +6
-0
lines changed
src/Microsoft.Health.Fhir.CosmosDb.UnitTests/Features/Health
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ public async Task GivenCosmosDbCanBeQueried_WhenHealthIsChecked_ThenHealthyState
66
66
[ InlineData ( typeof ( CosmosException ) ) ]
67
67
public async Task GivenCosmosDb_WhenRetryableExceptionIsAlwaysThrown_ThenUnhealthyStateShouldBeReturned ( Type exceptionType )
68
68
{
69
+ // This test simulates that all Health Check calls result in OperationCanceledExceptions.
70
+ // And all retries should fail.
71
+
69
72
// Arrange
70
73
Exception exception ;
71
74
@@ -104,6 +107,9 @@ public async Task GivenCosmosDb_WhenRetryableExceptionIsAlwaysThrown_ThenUnhealt
104
107
[ InlineData ( typeof ( CosmosException ) ) ]
105
108
public async Task GivenCosmosDb_WhenRetryableExceptionIsOnceThrown_ThenHealthyStateShouldBeReturned ( Type exceptionType )
106
109
{
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
+
107
113
// Arrange
108
114
Exception exception ;
109
115
You can’t perform that action at this time.
0 commit comments