Skip to content

Commit 20547bc

Browse files
[Internal] Direct Package: Adds version bump (#4120)
* direct version bump * Code changes to fix emulator tests to comply with direct release 3.31.5. --------- Co-authored-by: Debdatta Kunda <[email protected]>
1 parent 7db0aa0 commit 20547bc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ClientOfficialVersion>3.35.4</ClientOfficialVersion>
44
<ClientPreviewVersion>3.35.4</ClientPreviewVersion>
55
<ClientPreviewSuffixVersion>preview</ClientPreviewSuffixVersion>
6-
<DirectVersion>3.31.4</DirectVersion>
6+
<DirectVersion>3.31.5</DirectVersion>
77
<EncryptionOfficialVersion>2.0.3</EncryptionOfficialVersion>
88
<EncryptionPreviewVersion>2.0.3</EncryptionPreviewVersion>
99
<EncryptionPreviewSuffixVersion>preview</EncryptionPreviewSuffixVersion>

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ClientCreateAndInitializeTest.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,9 @@ public async Task CreateAndInitializeAsync_WithValidDatabaseAndContainer_ShouldO
276276
.GetValue(loadBalancingPartition);
277277

278278
Assert.IsNotNull(openChannels);
279-
Assert.AreEqual(48, openChannels.Count, "Here the expected value 48 rather explains how many time we call the" +
280-
"LoadBalancingPartition.OpenChannelAsync(). The emulator by default returns 12 partitions, and each partition has 4 replicas," +
281-
"and by behavior the emulator uses the same URI for eac of these replica, hence 12 * 4 = 48 times we call the OpenChannelAsync()." +
282-
"In ideal world, the value should be 1, because for each unique URI, the OpenChannelAsync() call will just be 1.");
279+
Assert.AreEqual(1, openChannels.Count, "Here the expected value 1 explains how many TCP connections were opened by the LoadBalancingPartition.OpenChannelAsync()." +
280+
"The emulator by default returns 12 partitions, and each partition has 4 replicas, and by behavior the emulator uses the same URI for each of these replica," +
281+
"hence 12 * 4 = 48 times we call the OpenChannelAsync(). However, the number of TCP connections established would be just one per each unique endpoint.");
283282
Assert.AreEqual(openChannels.Count * maxRequestsPerConnection, channelCapacity);
284283

285284
Documents.Rntbd.LbChannelState channelState = openChannels.First();

0 commit comments

Comments
 (0)