mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
22 lines
396 B
JavaScript
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();
|
|
})();
|