Skip to content

Commit 537a24c

Browse files
ChangeFeed tests: Pins deterministic mode for default-path assertions
Agent-Logs-Url: https://github.com/Azure/azure-cosmos-dotnet-v3/sessions/2ecc1c73-658a-4358-ad20-9ecc87fb25fe Co-authored-by: kirankumarkolli <6880899+kirankumarkolli@users.noreply.github.com>
1 parent 1404cc1 commit 537a24c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/ChangeFeed/DocumentServiceLeaseManagerCosmosTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public async Task AcquireCompletes()
7777
[DataRow(2, DisplayName = "Container with partitionKey PK")]
7878
public async Task CreatesEPKBasedLease(int factoryType)
7979
{
80+
Environment.SetEnvironmentVariable(ConfigurationManager.ChangeFeedLeaseIdAsPartitionKeyEnabled, "true");
81+
8082
RequestOptionsFactory requestOptionsFactory = GetRequestOptionsFactory(factoryType);
8183
string continuation = Guid.NewGuid().ToString();
8284
DocumentServiceLeaseStoreManagerOptions options = new DocumentServiceLeaseStoreManagerOptions
@@ -119,6 +121,8 @@ public async Task CreatesEPKBasedLease(int factoryType)
119121
[DataRow(2, DisplayName = "Container with partitionKey PK")]
120122
public async Task CreatesPartitionKeyBasedLease(int factoryType)
121123
{
124+
Environment.SetEnvironmentVariable(ConfigurationManager.ChangeFeedLeaseIdAsPartitionKeyEnabled, "true");
125+
122126
RequestOptionsFactory requestOptionsFactory = GetRequestOptionsFactory(factoryType);
123127
string continuation = Guid.NewGuid().ToString();
124128
DocumentServiceLeaseStoreManagerOptions options = new DocumentServiceLeaseStoreManagerOptions

0 commit comments

Comments
 (0)