From 821ac1964b7fc1beba93a71fb971584b3af4808d Mon Sep 17 00:00:00 2001 From: Jonathan Reams Date: Mon, 9 Apr 2018 15:37:57 -0400 Subject: SERVER-33821 Implement NetworkInterfaceTL and AsyncDBClient --- src/mongo/s/sharding_router_test_fixture.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/mongo/s/sharding_router_test_fixture.cpp') diff --git a/src/mongo/s/sharding_router_test_fixture.cpp b/src/mongo/s/sharding_router_test_fixture.cpp index 03d5fb6d01b..69cbd4b4ac1 100644 --- a/src/mongo/s/sharding_router_test_fixture.cpp +++ b/src/mongo/s/sharding_router_test_fixture.cpp @@ -106,15 +106,8 @@ void ShardingTestFixture::setUp() { service->setPreciseClockSource(stdx::make_unique()); service->setTickSource(stdx::make_unique()); - { - auto tlMock = stdx::make_unique(); - _transportLayer = tlMock.get(); - ASSERT_OK(_transportLayer->start()); - service->setTransportLayer(std::move(tlMock)); - } - CollatorFactoryInterface::set(service, stdx::make_unique()); - _transportSession = transport::MockSession::create(_transportLayer); + _transportSession = transport::MockSession::create(nullptr); _client = service->makeClient("ShardingTestFixture", _transportSession); _opCtx = _client->makeOperationContext(); @@ -544,7 +537,7 @@ void ShardingTestFixture::expectFindSendBSONObjVector(const HostAndPort& configH } void ShardingTestFixture::setRemote(const HostAndPort& remote) { - _transportSession = transport::MockSession::create(remote, HostAndPort{}, _transportLayer); + _transportSession = transport::MockSession::create(remote, HostAndPort{}, nullptr); } void ShardingTestFixture::checkReadConcern(const BSONObj& cmdObj, -- cgit v1.2.1