File tree Expand file tree Collapse file tree
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments