Skip to content

Commit 19922d2

Browse files
ChangeFeed tests: Adds DoNotParallelize to env-var-dependent test classes
Both DocumentServiceLeaseManagerCosmosTests and GremlinSmokeTests mutate the AZURE_COSMOS_CHANGE_FEED_LEASE_ID_AS_PARTITION_KEY_ENABLED environment variable, which is process-wide state. Without DoNotParallelize, concurrent test classes could overwrite each other's env var values, causing flaky failures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 829afe6 commit 19922d2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ChangeFeed/GremlinSmokeTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace Microsoft.Azure.Cosmos.SDK.EmulatorTests.ChangeFeed
1212

1313
[TestClass]
1414
[TestCategory("ChangeFeed")]
15+
[DoNotParallelize]
1516
public class GremlinSmokeTests : BaseChangeFeedClientHelper
1617
{
1718
private Container Container;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace Microsoft.Azure.Cosmos.ChangeFeed.Tests
1818

1919
[TestClass]
2020
[TestCategory("ChangeFeed")]
21+
[DoNotParallelize]
2122
public class DocumentServiceLeaseManagerCosmosTests
2223
{
2324
[TestInitialize]

0 commit comments

Comments
 (0)