diff options
author | Louis Williams <louis.williams@mongodb.com> | 2021-03-17 14:09:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-17 15:55:17 +0000 |
commit | 23ca988eb4ad8a55a266a39ec1bae59e67d9c1ee (patch) | |
tree | d8a0810f992393ee1b3a9c9ab044f7f7685d2b76 | |
parent | e902405b809f40614019e677ce4f44c751d3d9b7 (diff) | |
download | mongo-23ca988eb4ad8a55a266a39ec1bae59e67d9c1ee.tar.gz |
SERVER-54135 Move stress_test_unique_index* to noPassthroughWithMongod
-rw-r--r-- | jstests/noPassthroughWithMongod/stress_test_unique_index_notunique.js (renamed from jstests/core/stress_test_unique_index_notunique.js) | 22 | ||||
-rw-r--r-- | jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js (renamed from jstests/core/stress_test_unique_index_unique.js) | 22 |
2 files changed, 16 insertions, 28 deletions
diff --git a/jstests/core/stress_test_unique_index_notunique.js b/jstests/noPassthroughWithMongod/stress_test_unique_index_notunique.js index f0377eaadc5..8218c72becc 100644 --- a/jstests/core/stress_test_unique_index_notunique.js +++ b/jstests/noPassthroughWithMongod/stress_test_unique_index_notunique.js @@ -1,21 +1,15 @@ -// Tests that unique indexes can be built with a large number of non-unique values - -// @tags: [ -// assumes_unsharded_collection, -// requires_non_retryable_writes, -// ] +/* + * Tests that unique indexes can be built with a large number of non-unique values. + * + * @tags: [ + * // This workload is too impactful on ephemeralForTest + * requires_wiredtiger, + * ] + */ (function() { "use strict"; -load("jstests/concurrency/fsm_workload_helpers/server_types.js"); -// This workload would timeout on ephemeralForTest. isEphemeralForTest throws an exception if called -// from a mongos, so we need to check that first. Unique indexes are not supported on sharded -// collections anyway so it's safe to quit early if the db is a mongos. -if (isMongos(db) || isEphemeralForTest(db)) { - return; -} - let coll = db.stress_test_unique_index_notunique; coll.drop(); diff --git a/jstests/core/stress_test_unique_index_unique.js b/jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js index a83e406ed40..96aa7e3c51f 100644 --- a/jstests/core/stress_test_unique_index_unique.js +++ b/jstests/noPassthroughWithMongod/stress_test_unique_index_unique.js @@ -1,21 +1,15 @@ -// Tests that unique indexes can be built with a large number of unique values - -// @tags: [ -// assumes_unsharded_collection, -// requires_non_retryable_writes, -// ] +/** + * Tests that unique indexes can be built with a large number of unique values. + * + * @tags: [ + * // This workload is too impactful on ephemeralForTest + * requires_wiredtiger, + * ] + */ (function() { "use strict"; -load("jstests/concurrency/fsm_workload_helpers/server_types.js"); -// This workload would timeout on ephemeralForTest. isEphemeralForTest throws an exception if called -// from a mongos, so we need to check that first. Unique indexes are not supported on sharded -// collections anyway so it's safe to quit early if the db is a mongos. -if (isMongos(db) || isEphemeralForTest(db)) { - return; -} - let coll = db.stress_test_unique_index_unique; coll.drop(); |