Skip to content

Commit 1b2e275

Browse files
committed
fix test
1 parent 8379b80 commit 1b2e275

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,7 +2200,7 @@ public async Task CreateItemAsync_WithThinClientEnabledAndCircuitBreakerEnabledA
22002200
[Owner("ntripician")]
22012201
[TestCategory("MultiRegion")]
22022202
[Timeout(70000)]
2203-
public void ClinetOverrides0msRequestTimeoutValueForPPAF()
2203+
public async Task ClinetOverrides0msRequestTimeoutValueForPPAF()
22042204
{
22052205
// Arrange.
22062206

@@ -2244,14 +2244,16 @@ public void ClinetOverrides0msRequestTimeoutValueForPPAF()
22442244

22452245
using CosmosClient cosmosClient = new(connectionString: this.connectionString, clientOptions: cosmosClientOptions);
22462246
Database database = cosmosClient.GetDatabase(MultiRegionSetupHelpers.dbName);
2247-
Container container = database.GetContainer(MultiRegionSetupHelpers.containerName);
2247+
Container container = database.GetContainer(MultiRegionSetupHelpers.containerName);
2248+
2249+
//request to start document client initiation
2250+
_ = await container.ReadItemAsync<CosmosIntegrationTestObject>("id", new PartitionKey("pk1"));
22482251

22492252
// Act and Assert.
22502253

22512254
CrossRegionHedgingAvailabilityStrategy strat = cosmosClient.DocumentClient.ConnectionPolicy.AvailabilityStrategy as CrossRegionHedgingAvailabilityStrategy;
22522255
Assert.IsNotNull(strat);
2253-
Assert.AreNotEqual(0, strat.Threshold);
2254-
2256+
Assert.AreNotEqual(0, strat.Threshold);
22552257
}
22562258

22572259
private async Task TryCreateItems(List<CosmosIntegrationTestObject> testItems)

0 commit comments

Comments
 (0)