summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Suarez <kyle.suarez@mongodb.com>2017-03-31 11:22:30 -0400
committerKyle Suarez <kyle.suarez@mongodb.com>2017-03-31 11:35:12 -0400
commit03945fa420fd22a690151593e8afc88bda3008bf (patch)
tree0cbfc1c5a7cad2446f40667bc799561bef486e1c
parent928d3b0cf3b989f7f099df9b9746505d6b68f470 (diff)
downloadmongo-03945fa420fd22a690151593e8afc88bda3008bf.tar.gz
SERVER-28558 tests must not use jsTest.name() as a collection name
Doing so will cause tests to use the same collection in the parallel suite, where the name of the test could be "basicPlus".
-rw-r--r--jstests/core/explain_agg_write_concern.js5
-rw-r--r--jstests/core/projection_dotted_paths.js2
2 files changed, 4 insertions, 3 deletions
diff --git a/jstests/core/explain_agg_write_concern.js b/jstests/core/explain_agg_write_concern.js
index 7a73bee79cf..bd744785082 100644
--- a/jstests/core/explain_agg_write_concern.js
+++ b/jstests/core/explain_agg_write_concern.js
@@ -8,8 +8,9 @@
(function() {
"use strict";
- let coll = db[jsTest.name()];
- let outColl = db[jsTest.name() + "_out"];
+ const collName = "explain_agg_write_concern";
+ let coll = db[collName];
+ let outColl = db[collName + "_out"];
coll.drop();
outColl.drop();
diff --git a/jstests/core/projection_dotted_paths.js b/jstests/core/projection_dotted_paths.js
index f72a6d30bd6..9f7564a147e 100644
--- a/jstests/core/projection_dotted_paths.js
+++ b/jstests/core/projection_dotted_paths.js
@@ -11,7 +11,7 @@
load("jstests/libs/analyze_plan.js");
- let coll = db[jsTest.name()];
+ let coll = db["projection_dotted_paths"];
coll.drop();
assert.commandWorked(coll.createIndex({a: 1, "b.c": 1, "b.d": 1, c: 1}));
assert.writeOK(coll.insert({_id: 1, a: 1, b: {c: 1, d: 1, e: 1}, c: 1, e: 1}));