diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-04-09 15:37:57 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-04-13 12:18:39 -0400 |
commit | 821ac1964b7fc1beba93a71fb971584b3af4808d (patch) | |
tree | 7b4db79590920bc293ce2136a5c06f32802f9b76 /src/mongo/s/sharding_router_test_fixture.cpp | |
parent | ad3671a64bd8958370a4aeaf93fe00d2d1272e3a (diff) | |
download | mongo-821ac1964b7fc1beba93a71fb971584b3af4808d.tar.gz |
SERVER-33821 Implement NetworkInterfaceTL and AsyncDBClient
Diffstat (limited to 'src/mongo/s/sharding_router_test_fixture.cpp')
-rw-r--r-- | src/mongo/s/sharding_router_test_fixture.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
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<ClockSourceMock>()); service->setTickSource(stdx::make_unique<TickSourceMock>()); - { - auto tlMock = stdx::make_unique<transport::TransportLayerMock>(); - _transportLayer = tlMock.get(); - ASSERT_OK(_transportLayer->start()); - service->setTransportLayer(std::move(tlMock)); - } - CollatorFactoryInterface::set(service, stdx::make_unique<CollatorFactoryMock>()); - _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, |