From c3de4cb23a1d94afa9ff72fb7023c52a0aa402ef Mon Sep 17 00:00:00 2001 From: Nalu Tripician <27316859+NaluTripician@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:01:22 -0700 Subject: [PATCH] [Internal] Tests: Increases circuit breaker replication delay for CI reliability Increases replication delay from 3s to 5s in circuit breaker integration tests to account for slower multi-region data propagation on CI networks. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../CosmosItemIntegrationTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosItemIntegrationTests.cs b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosItemIntegrationTests.cs index 99a1381360..7eb69d925e 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosItemIntegrationTests.cs +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosItemIntegrationTests.cs @@ -794,7 +794,7 @@ public async Task ReadItemAsync_WithCircuitBreakerEnabledAndSingleMasterAccountA await this.TryCreateItems(itemsList); //Must Ensure the data is replicated to all regions - await Task.Delay(3000); + await Task.Delay(5000); bool isRegion1Available = true; bool isRegion2Available = true; @@ -1055,7 +1055,7 @@ public async Task ReadItemAsync_WithCircuitBreakerDisabledAndSingleMasterAccount await this.TryCreateItems(itemsList); //Must Ensure the data is replicated to all regions - await Task.Delay(3000); + await Task.Delay(5000); int consecutiveFailureCount = 10; for (int attemptCount = 1; attemptCount <= consecutiveFailureCount; attemptCount++)