summaryrefslogtreecommitdiff
path: root/jstests/ssl
diff options
context:
space:
mode:
authorBlake Oler <blake.oler@mongodb.com>2018-10-02 15:58:53 -0400
committerBlake Oler <blake.oler@mongodb.com>2018-10-11 11:37:54 -0400
commitf2944ecc32d49ecdf801b38653b79e2396a40510 (patch)
tree387c23852fa6978663bd5c823a0d50f77b9c6816 /jstests/ssl
parentcc99b89e8c2ecbae3b4ae006f0a97927fe6040ce (diff)
downloadmongo-f2944ecc32d49ecdf801b38653b79e2396a40510.tar.gz
SERVER-35323 Guarantee the command object sent by the ShardingTaskExecutor will always have the correct logical session id
Diffstat (limited to 'jstests/ssl')
-rw-r--r--jstests/ssl/ssl_get_more.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/ssl/ssl_get_more.js b/jstests/ssl/ssl_get_more.js
index f70afc38054..5b75a43b377 100644
--- a/jstests/ssl/ssl_get_more.js
+++ b/jstests/ssl/ssl_get_more.js
@@ -40,6 +40,16 @@
assert.eq(3, cursor.itcount());
}
+ assert.commandWorked(db.createCollection("bar"));
+ assert.commandWorked(db.createCollection("baz"));
+
+ for (let i = 0; i < 10; i++) {
+ const res =
+ assert.commandWorked(db.runCommand({listCollections: 1, cursor: {batchSize: 0}}));
+ const cursor = new DBCommandCursor(db, res);
+ assert.eq(3, cursor.itcount());
+ }
+
// Authenticate csrs so ReplSetTest.stopSet() can do db hash check.
if (st.configRS) {
st.configRS.nodes.forEach((node) => {