diff options
author | Benety Goh <benety@mongodb.com> | 2019-04-26 13:22:38 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2019-04-26 13:22:54 -0400 |
commit | 466fd9bf23cb4c694891d77af02b338353d32eb8 (patch) | |
tree | 6688724cd0c7ade5ad53af318ebd4346b124e59a /jstests | |
parent | 77dcacf5a1b29e4537b2d0895bd0da233c92d136 (diff) | |
download | mongo-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.js | 4 |
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); |