You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update unit tests for background refresh fix in multi-writer accounts
- backgroundRefreshForMultiMaster: changed assertion from assertFalse to
assertTrue - the timer must keep running even when shouldRefreshEndpoints
returns false
- backgroundRefreshDetectsTopologyChangeForMultiMaster: new test that proves
the fix works by simulating a multi-write to single-write transition and
verifying the background refresh detects the topology change
All 6 GlobalEndPointManagerTest tests pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/implementation/directconnectivity/GlobalEndPointManagerTest.java
+50-1Lines changed: 50 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -233,8 +233,57 @@ public void backgroundRefreshForMultiMaster() throws Exception {
0 commit comments