diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-05-21 09:40:25 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2015-06-02 05:18:02 -0400 |
commit | 34eb51e5d8d05abb56055042da244c30e58dfe08 (patch) | |
tree | cdcaf767d19b29f73dfce02ba77f44d982b50efd /src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp | |
parent | bb8c5523362aa360b02e2c651d643d0ee478b17c (diff) | |
download | mongo-34eb51e5d8d05abb56055042da244c30e58dfe08.tar.gz |
SERVER-18254 unit test prepareHeartbeatResponseV1()
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp b/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp index 7a64aad68d8..5851b6e7e7b 100644 --- a/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp +++ b/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp @@ -114,7 +114,7 @@ namespace { hbResp.setConfig(rsConfig); BSONObjBuilder responseBuilder; responseBuilder << "ok" << 1; - hbResp.addToBSON(&responseBuilder); + hbResp.addToBSON(&responseBuilder, true); net->scheduleResponse(noi, startDate + Milliseconds(200), makeResponseStatus(responseBuilder.obj())); @@ -175,7 +175,7 @@ namespace { hbResp.setConfig(rsConfig); BSONObjBuilder responseBuilder; responseBuilder << "ok" << 1; - hbResp.addToBSON(&responseBuilder); + hbResp.addToBSON(&responseBuilder, true); net->scheduleResponse(noi, startDate + Milliseconds(200), makeResponseStatus(responseBuilder.obj())); |