Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annie-mac committed Dec 4, 2024
1 parent 31bf7af commit 6fc52b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.azure.cosmos.CosmosDiagnostics;
import com.azure.cosmos.CosmosEndToEndOperationLatencyPolicyConfig;
import com.azure.cosmos.CosmosItemSerializer;
import com.azure.cosmos.Http2ConnectionConfig;
import com.azure.cosmos.SessionRetryOptions;
import com.azure.cosmos.implementation.apachecommons.lang.tuple.ImmutablePair;
import com.azure.cosmos.implementation.caches.RxClientCollectionCache;
Expand Down Expand Up @@ -179,6 +180,7 @@ public void readMany() {
Mockito.when(this.connectionPolicyMock.getMaxConnectionPoolSize()).thenReturn(dummyInt);
Mockito.when(this.connectionPolicyMock.getProxy()).thenReturn(dummyProxyOptions);
Mockito.when(this.connectionPolicyMock.getHttpNetworkRequestTimeout()).thenReturn(dummyDuration);
Mockito.when(this.connectionPolicyMock.getHttp2ConnectionConfig()).thenReturn(new Http2ConnectionConfig());

httpClientMock
.when(() -> HttpClient.createFixed(Mockito.any(HttpClientConfig.class)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@ public String toDiagnosticsString() {
maxIdleConnectionTimeout,
connectionAcquireTimeout,
proxy != null,
http2ConnectionConfig.toDiagnosticsString());
http2ConnectionConfig == null ? null : http2ConnectionConfig.toDiagnosticsString());
}
}

0 comments on commit 6fc52b8

Please sign in to comment.