diff options
author | clang-format-7.0.1 <adam.martin@10gen.com> | 2019-07-26 18:20:35 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 11:02:23 -0400 |
commit | 134a4083953270e8a11430395357fb70a29047ad (patch) | |
tree | dd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /src/mongo/executor/network_interface_integration_test.cpp | |
parent | 1e46b5049003f427047e723ea5fab15b5a9253ca (diff) | |
download | mongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz |
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'src/mongo/executor/network_interface_integration_test.cpp')
-rw-r--r-- | src/mongo/executor/network_interface_integration_test.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/mongo/executor/network_interface_integration_test.cpp b/src/mongo/executor/network_interface_integration_test.cpp index 163415c923c..2723f66bde7 100644 --- a/src/mongo/executor/network_interface_integration_test.cpp +++ b/src/mongo/executor/network_interface_integration_test.cpp @@ -87,8 +87,7 @@ class HangingHook : public executor::NetworkConnectionHook { "admin", BSON("sleep" << 1 << "lock" << "none" - << "secs" - << 100000000), + << "secs" << 100000000), BSONObj(), nullptr))}; } @@ -274,8 +273,7 @@ TEST_F(NetworkInterfaceTest, AsyncOpTimeout) { auto request = makeTestCommand(Milliseconds{1000}); request.cmdObj = BSON("sleep" << 1 << "lock" << "none" - << "secs" - << 1000000000); + << "secs" << 1000000000); auto deferred = runCommand(cb, request); waitForIsMaster(); @@ -322,14 +320,15 @@ TEST_F(NetworkInterfaceTest, SetAlarm) { Date_t expiration = net().now() + Milliseconds(100); auto makeTimerFuture = [&] { auto pf = makePromiseFuture<Date_t>(); - return std::make_pair([ this, promise = std::move(pf.promise) ](Status status) mutable { - if (status.isOK()) { - promise.emplaceValue(net().now()); - } else { - promise.setError(status); - } - }, - std::move(pf.future)); + return std::make_pair( + [this, promise = std::move(pf.promise)](Status status) mutable { + if (status.isOK()) { + promise.emplaceValue(net().now()); + } else { + promise.setError(status); + } + }, + std::move(pf.future)); }; auto futurePair = makeTimerFuture(); |