Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: wbpcode <wbphub@live.com>
  • Loading branch information
wbpcode committed Apr 26, 2024
1 parent da83714 commit 9724057
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/common/grpc/grpc_client_integration_test_harness.h
Expand Up @@ -334,7 +334,7 @@ class GrpcClientIntegrationTest : public GrpcClientIntegrationParamTest {
EXPECT_CALL(*mock_host_, createConnection_(_, _)).WillRepeatedly(Return(connection_data));
EXPECT_CALL(*mock_host_, cluster())
.WillRepeatedly(ReturnRef(*cm_.thread_local_cluster_.cluster_.info_));
EXPECT_CALL(*mock_host_description_, locality()).WillRepeatedly(ReturnRef(host_locality_));
EXPECT_CALL(*mock_host_, locality()).WillRepeatedly(ReturnRef(host_locality_));
http_conn_pool_ = Http::Http2::allocateConnPool(*dispatcher_, api_->randomGenerator(),
host_ptr_, Upstream::ResourcePriority::Default,
nullptr, nullptr, state_);
Expand Down Expand Up @@ -570,11 +570,11 @@ class GrpcSslClientIntegrationTest : public GrpcClientIntegrationTest {
auto cfg = std::make_unique<Extensions::TransportSockets::Tls::ClientContextConfigImpl>(
tls_context, factory_context_);

mock_host_description_->socket_factory_ =
mock_host_->socket_factory_ =
std::make_unique<Extensions::TransportSockets::Tls::ClientSslSocketFactory>(
std::move(cfg), context_manager_, *stats_store_.rootScope());
async_client_transport_socket_ =
mock_host_description_->socket_factory_->createTransportSocket(nullptr, nullptr);
mock_host_->socket_factory_->createTransportSocket(nullptr, nullptr);
FakeUpstreamConfig config(test_time_.timeSystem());
config.upstream_protocol_ = Http::CodecType::HTTP2;
fake_upstream_ =
Expand Down

0 comments on commit 9724057

Please sign in to comment.