diff options
author | William Schultz <william.schultz@mongodb.com> | 2018-08-21 17:31:15 -0400 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2018-08-21 18:34:11 -0400 |
commit | e2f47a13f11d5a4aa2b7f23e1e0c157d90435e9e (patch) | |
tree | 242d4813fda0bcf9778715adeb2bb3cc6ca190a5 /src | |
parent | 853cb4d0b54353bb835b27f6332cbb3ad8f5cb3f (diff) | |
download | mongo-e2f47a13f11d5a4aa2b7f23e1e0c157d90435e9e.tar.gz |
SERVER-36105 Fix argument type in service_state_machine_test.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/transport/service_state_machine_test.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mongo/transport/service_state_machine_test.cpp b/src/mongo/transport/service_state_machine_test.cpp index a59fd4ec259..37e4dcb251d 100644 --- a/src/mongo/transport/service_state_machine_test.cpp +++ b/src/mongo/transport/service_state_machine_test.cpp @@ -416,7 +416,9 @@ TEST_F(ServiceStateMachineFixture, TestOkaySimpleCommand) { checkPingOk(); } -Message getMoreRequestWithExhaust(const std::string& nss, long cursorId, const int32_t requestId) { +Message getMoreRequestWithExhaust(const std::string& nss, + long long cursorId, + const int32_t requestId) { Message getMoreMsg = buildOpMsg(BSON("getMore" << cursorId << "collection" << nss)); getMoreMsg.header().setId(requestId); OpMsg::setFlag(&getMoreMsg, OpMsg::kExhaustSupported); @@ -427,7 +429,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaust) { // Construct a 'getMore' OP_MSG request with the exhaust flag set. const int32_t initRequestId = 1; - const long cursorId = 42; + const long long cursorId = 42; const std::string nss = "test.coll"; Message getMoreWithExhaust = getMoreRequestWithExhaust(nss, cursorId, initRequestId); @@ -477,7 +479,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaust) { TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndEmptyResponseNamespace) { // Construct a 'getMore' OP_MSG request with the exhaust flag set. const int32_t initRequestId = 1; - const long cursorId = 42; + const long long cursorId = 42; const std::string nss = "test.coll"; Message getMoreWithExhaust = getMoreRequestWithExhaust(nss, cursorId, initRequestId); @@ -504,7 +506,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndEmptyResponseNamespa TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndEmptyCursorObjectInResponse) { // Construct a 'getMore' OP_MSG request with the exhaust flag set. const int32_t initRequestId = 1; - const long cursorId = 42; + const long long cursorId = 42; const std::string nss = "test.coll"; Message getMoreWithExhaust = getMoreRequestWithExhaust(nss, cursorId, initRequestId); @@ -528,7 +530,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndEmptyCursorObjectInR TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndNoCursorFieldInResponse) { // Construct a 'getMore' OP_MSG request with the exhaust flag set. const int32_t initRequestId = 1; - const long cursorId = 42; + const long long cursorId = 42; const std::string nss = "test.coll"; Message getMoreWithExhaust = getMoreRequestWithExhaust(nss, cursorId, initRequestId); @@ -552,7 +554,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndNoCursorFieldInRespo TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndNonOKResponse) { // Construct a 'getMore' OP_MSG request with the exhaust flag set. const int32_t initRequestId = 1; - const long cursorId = 42; + const long long cursorId = 42; const std::string nss = "test.coll"; Message getMoreWithExhaust = getMoreRequestWithExhaust(nss, cursorId, initRequestId); |