summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-04-26 13:22:38 -0400
committerBenety Goh <benety@mongodb.com>2019-04-26 13:22:54 -0400
commit466fd9bf23cb4c694891d77af02b338353d32eb8 (patch)
tree6688724cd0c7ade5ad53af318ebd4346b124e59a /jstests
parent77dcacf5a1b29e4537b2d0895bd0da233c92d136 (diff)
downloadmongo-466fd9bf23cb4c694891d77af02b338353d32eb8.tar.gz
SERVER-40847 hybrid_unique_index_with_updates.js uses unique collection name for each test run
Diffstat (limited to 'jstests')
-rw-r--r--jstests/noPassthrough/hybrid_unique_index_with_updates.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/noPassthrough/hybrid_unique_index_with_updates.js b/jstests/noPassthrough/hybrid_unique_index_with_updates.js
index eb564ca9905..849e155b7e7 100644
--- a/jstests/noPassthrough/hybrid_unique_index_with_updates.js
+++ b/jstests/noPassthrough/hybrid_unique_index_with_updates.js
@@ -80,7 +80,9 @@
let runTest = function(config) {
jsTestLog("running test with config: " + tojson(config));
- const collName = 'hybrid';
+ const collName = Object.keys(config).length
+ ? 'hybrid_' + config.operation[0] + '_r' + Number(config.resolve) + '_p' + config.phase
+ : 'hybrid';
const coll = testDB.getCollection(collName);
setUp(coll);