Skip to content

Commit 547fa49

Browse files
committed
Update CosmosItemIntegrationTests.cs
1 parent f3839df commit 547fa49

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,8 +2246,12 @@ public async Task ClinetOverrides0msRequestTimeoutValueForPPAF()
22462246
Database database = cosmosClient.GetDatabase(MultiRegionSetupHelpers.dbName);
22472247
Container container = database.GetContainer(MultiRegionSetupHelpers.containerName);
22482248

2249-
//request to start document client initiation
2250-
_ = await container.ReadItemAsync<CosmosIntegrationTestObject>("id", new PartitionKey("pk1"));
2249+
try
2250+
{
2251+
//request to start document client initiation
2252+
_ = await container.ReadItemAsync<CosmosIntegrationTestObject>("id", new PartitionKey("pk1"));
2253+
}
2254+
catch { }
22512255

22522256
// Act and Assert.
22532257

0 commit comments

Comments
 (0)