0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/sharding/find_collname_uuid_test.js
2019-07-27 11:02:23 -04:00

22 lines
396 B
JavaScript

/**
* Test ClusterFindCmd with UUID for collection name fails (but does not crash)
*/
(function() {
"use strict";
var cmdRes;
var cursorId;
var st = new ShardingTest({shards: 2});
st.stopBalancer();
var db = st.s.getDB("test");
assert.commandWorked(db.adminCommand({enableSharding: db.getName()}));
cmdRes = db.adminCommand({find: UUID()});
assert.commandFailed(cmdRes);
st.stop();
})();