summaryrefslogtreecommitdiff
path: root/jstests/core/list_collections_filter.js
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-04-04 08:02:40 -0400
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-04-04 08:02:40 -0400
commite6abd76d9ca9e03256ceadda7d9eb54994239b42 (patch)
treea99f743e3cf7f39a9bee51504c32d54053a0b92a /jstests/core/list_collections_filter.js
parent4459b439700f096a7b6287fdddde592db8934fe2 (diff)
downloadmongo-e6abd76d9ca9e03256ceadda7d9eb54994239b42.tar.gz
SERVER-40345 Change calls involving the 'temp' field in the 'create' command to be done through the 'applyOps' command
Diffstat (limited to 'jstests/core/list_collections_filter.js')
-rw-r--r--jstests/core/list_collections_filter.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/core/list_collections_filter.js b/jstests/core/list_collections_filter.js
index ef162642bdf..fdd1c85429c 100644
--- a/jstests/core/list_collections_filter.js
+++ b/jstests/core/list_collections_filter.js
@@ -1,4 +1,5 @@
// Test SERVER-18622 listCollections should special case filtering by name.
+// @tags: [requires_replication]
(function() {
"use strict";
var mydb = db.getSiblingDB("list_collections_filter");
@@ -8,7 +9,10 @@
assert.commandWorked(mydb.createCollection("lists"));
assert.commandWorked(mydb.createCollection("ordered_sets"));
assert.commandWorked(mydb.createCollection("unordered_sets"));
- assert.commandWorked(mydb.createCollection("arrays_temp", {temp: true}));
+ assert.commandWorked(mydb.runCommand({
+ applyOps:
+ [{op: "c", ns: mydb.getName() + ".$cmd", o: {create: "arrays_temp", temp: true}}]
+ }));
/**
* Asserts that the names of the collections returned from running the listCollections