@@ -416,7 +416,9 @@ TEST_F(ServiceStateMachineFixture, TestOkaySimpleCommand) {
416416 checkPingOk ();
417417}
418418
419- Message getMoreRequestWithExhaust (const std::string& nss, long cursorId, const int32_t requestId) {
419+ Message getMoreRequestWithExhaust (const std::string& nss,
420+ long long cursorId,
421+ const int32_t requestId) {
420422 Message getMoreMsg = buildOpMsg (BSON (" getMore" << cursorId << " collection" << nss));
421423 getMoreMsg.header ().setId (requestId);
422424 OpMsg::setFlag (&getMoreMsg, OpMsg::kExhaustSupported );
@@ -427,7 +429,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaust) {
427429
428430 // Construct a 'getMore' OP_MSG request with the exhaust flag set.
429431 const int32_t initRequestId = 1 ;
430- const long cursorId = 42 ;
432+ const long long cursorId = 42 ;
431433 const std::string nss = " test.coll" ;
432434 Message getMoreWithExhaust = getMoreRequestWithExhaust (nss, cursorId, initRequestId);
433435
@@ -477,7 +479,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaust) {
477479TEST_F (ServiceStateMachineFixture, TestGetMoreWithExhaustAndEmptyResponseNamespace) {
478480 // Construct a 'getMore' OP_MSG request with the exhaust flag set.
479481 const int32_t initRequestId = 1 ;
480- const long cursorId = 42 ;
482+ const long long cursorId = 42 ;
481483 const std::string nss = " test.coll" ;
482484 Message getMoreWithExhaust = getMoreRequestWithExhaust (nss, cursorId, initRequestId);
483485
@@ -504,7 +506,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndEmptyResponseNamespa
504506TEST_F (ServiceStateMachineFixture, TestGetMoreWithExhaustAndEmptyCursorObjectInResponse) {
505507 // Construct a 'getMore' OP_MSG request with the exhaust flag set.
506508 const int32_t initRequestId = 1 ;
507- const long cursorId = 42 ;
509+ const long long cursorId = 42 ;
508510 const std::string nss = " test.coll" ;
509511 Message getMoreWithExhaust = getMoreRequestWithExhaust (nss, cursorId, initRequestId);
510512
@@ -528,7 +530,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndEmptyCursorObjectInR
528530TEST_F (ServiceStateMachineFixture, TestGetMoreWithExhaustAndNoCursorFieldInResponse) {
529531 // Construct a 'getMore' OP_MSG request with the exhaust flag set.
530532 const int32_t initRequestId = 1 ;
531- const long cursorId = 42 ;
533+ const long long cursorId = 42 ;
532534 const std::string nss = " test.coll" ;
533535 Message getMoreWithExhaust = getMoreRequestWithExhaust (nss, cursorId, initRequestId);
534536
@@ -552,7 +554,7 @@ TEST_F(ServiceStateMachineFixture, TestGetMoreWithExhaustAndNoCursorFieldInRespo
552554TEST_F (ServiceStateMachineFixture, TestGetMoreWithExhaustAndNonOKResponse) {
553555 // Construct a 'getMore' OP_MSG request with the exhaust flag set.
554556 const int32_t initRequestId = 1 ;
555- const long cursorId = 42 ;
557+ const long long cursorId = 42 ;
556558 const std::string nss = " test.coll" ;
557559 Message getMoreWithExhaust = getMoreRequestWithExhaust (nss, cursorId, initRequestId);
558560
0 commit comments