summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r--src/mongo/dbtests/querytests.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp
index 26153a3e9dc..9d7b0cae262 100644
--- a/src/mongo/dbtests/querytests.cpp
+++ b/src/mongo/dbtests/querytests.cpp
@@ -1932,14 +1932,12 @@ public:
<< "capped" << true << "size" << 8192),
info));
_client.insert(ns(), BSON("ts" << Timestamp(1000, 0)));
- Message message;
- assembleQueryRequest(ns(),
- BSON("ts" << GTE << Timestamp(1000, 0)),
- 0,
- 0,
- nullptr,
- QueryOption_CursorTailable | QueryOption_Exhaust,
- message);
+ Message message = makeQueryMessage(ns(),
+ BSON("ts" << GTE << Timestamp(1000, 0)),
+ 0,
+ 0,
+ nullptr,
+ QueryOption_CursorTailable | QueryOption_Exhaust);
DbMessage dbMessage(message);
QueryMessage queryMessage(dbMessage);
Message result;