From e2f47a13f11d5a4aa2b7f23e1e0c157d90435e9e Mon Sep 17 00:00:00 2001 From: William Schultz Date: Tue, 21 Aug 2018 17:31:15 -0400 Subject: SERVER-36105 Fix argument type in service_state_machine_test.cpp --- src/mongo/transport/service_state_machine_test.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src') 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); -- cgit v1.2.1