diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2018-05-10 11:49:47 -0400 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2018-05-14 14:13:25 -0400 |
commit | 9db7db6586d621ab41430a26155d9c46ce32c046 (patch) | |
tree | c78df1326706e66201efda7e8f6fdaf5102930cd /jstests/concurrency/fsm_utils | |
parent | 41b83a16fd3d308a24f2e001759d8415dc348ddf (diff) | |
download | mongo-9db7db6586d621ab41430a26155d9c46ce32c046.tar.gz |
SERVER-30204 Use a new CleanupConcurrencyWorkloads hook instead of CleanEveryN for FSM suites using resmoke_runner.js
Diffstat (limited to 'jstests/concurrency/fsm_utils')
-rw-r--r-- | jstests/concurrency/fsm_utils/name_utils.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/jstests/concurrency/fsm_utils/name_utils.js b/jstests/concurrency/fsm_utils/name_utils.js index 7f845603ffc..4c9d6d85fbb 100644 --- a/jstests/concurrency/fsm_utils/name_utils.js +++ b/jstests/concurrency/fsm_utils/name_utils.js @@ -3,29 +3,32 @@ /** * Helpers for generating names of databases and collections * to execute workloads against. + * The DB and collections names here are synchronized with the + * the names found in the CleanupConcurrencyWorkloads hook + * in resmoke. */ if (typeof uniqueDBName === 'undefined') { // Returns a unique database name: - // <dbNamePrefix>db0, <dbNamePrefix>db1, ... + // <dbNamePrefix>fsmdb0, <dbNamePrefix>fsmdb1, ... var uniqueDBName = (function(dbNamePrefix) { var i = 0; return function(dbNamePrefix) { var prefix = dbNamePrefix || ''; - return prefix + 'db' + i++; + return prefix + 'fsmdb' + i++; }; })(); } if (typeof uniqueCollName === 'undefined') { // Returns a unique collection name: - // coll0, coll1, ... + // fsmcoll0, fsmcoll1, ... var uniqueCollName = (function() { var i = 0; return function() { - return 'coll' + i++; + return 'fsmcoll' + i++; }; })(); } |