diff options
author | Benety Goh <benety@mongodb.com> | 2021-12-16 17:44:20 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-12-16 23:27:18 +0000 |
commit | c5816ddeb9048661fbe3296c67267e51c073d20a (patch) | |
tree | 5ea96083f74b98ea6a18823dddf252eb47eb9686 | |
parent | fa202b3594be0389f1fcd7e93e8f6d11ccb6e933 (diff) | |
download | mongo-c5816ddeb9048661fbe3296c67267e51c073d20a.tar.gz |
SERVER-62092 move geo_array1.js to slow1
-rwxr-xr-x | buildscripts/resmokeconfig/suites/cst_jscore_passthrough.yml | 1 | ||||
-rw-r--r-- | jstests/slow1/geo_array1.js (renamed from jstests/core/geo_array1.js) | 17 |
2 files changed, 13 insertions, 5 deletions
diff --git a/buildscripts/resmokeconfig/suites/cst_jscore_passthrough.yml b/buildscripts/resmokeconfig/suites/cst_jscore_passthrough.yml index 89c3a90729f..6f13f2f3b26 100755 --- a/buildscripts/resmokeconfig/suites/cst_jscore_passthrough.yml +++ b/buildscripts/resmokeconfig/suites/cst_jscore_passthrough.yml @@ -662,7 +662,6 @@ selector: - jstests/core/geo_2d_with_geojson_point.js - jstests/core/geo_allowedcomparisons.js - jstests/core/geo_array0.js - - jstests/core/geo_array1.js - jstests/core/geo_array2.js - jstests/core/geo_big_polygon.js - jstests/core/geo_big_polygon2.js diff --git a/jstests/core/geo_array1.js b/jstests/slow1/geo_array1.js index 0ff9fa4f1ad..5382126dfa2 100644 --- a/jstests/core/geo_array1.js +++ b/jstests/slow1/geo_array1.js @@ -28,8 +28,9 @@ for (let i = 0; i < numLocations; i++) { const collNamePrefix = 'geo_array1_'; let collCount = 0; -function test(index) { - let t = db.getCollection(collNamePrefix + collCount++); +function test(conn, index) { + const testDB = conn.getDB('test'); + let t = testDB.getCollection(collNamePrefix + collCount++); t.drop(); if (index) { @@ -52,6 +53,14 @@ function test(index) { } } -test(/*index=*/true); -test(/*index=*/false); +const rst = ReplSetTest({nodes: 1}); +rst.startSet(); +rst.initiate(); + +const primary = rst.getPrimary(); + +test(primary, /*index=*/true); +test(primary, /*index=*/false); + +rst.stopSet(); })(); |