SERVER-109490 Use unique collection names in hybrid search integration tests (#40267) (#42229)

GitOrigin-RevId: a5696a48a6032bf683920b7c20f7abab0aedd270
This commit is contained in:
Gil Alon 2025-10-06 11:51:08 -04:00 committed by MongoDB Bot
parent afcaf66903
commit 5c24c5da7c
9 changed files with 11 additions and 9 deletions

View File

@ -12,7 +12,7 @@
* ]
*/
const collName = "search_rank_fusion";
const collName = jsTestName();
const coll = db[collName];
function runPipeline(pipeline) {

View File

@ -13,7 +13,7 @@ import {
datasets,
} from "jstests/with_mongot/e2e_lib/search_e2e_utils.js";
const collName = "search_rank_fusion";
const collName = jsTestName();
const coll = db.getCollection(collName);
coll.drop();

View File

@ -15,7 +15,7 @@ import {
} from "jstests/with_mongot/e2e_lib/data/movies.js";
import {getRentalData, getRentalSearchIndexSpec} from "jstests/with_mongot/e2e_lib/data/rentals.js";
const collName = "search_rank_fusion";
const collName = jsTestName();
const coll = db.getCollection(collName);
coll.drop();
@ -559,4 +559,6 @@ dropSearchIndex(coll, {name: getMovieVectorSearchIndexSpec().name});
assert.eq(score, geoNearScore + searchScore);
}
dropSearchIndex(coll, {name: getRentalSearchIndexSpec().name});
})();

View File

@ -16,7 +16,7 @@ import {
datasets,
} from "jstests/with_mongot/e2e_lib/search_e2e_utils.js";
const collName = "search_rank_fusion";
const collName = jsTestName();
const coll = db.getCollection(collName);
coll.drop();

View File

@ -17,7 +17,7 @@ import {
datasets,
} from "jstests/with_mongot/e2e_lib/search_e2e_utils.js";
const collName = "search_rank_fusion";
const collName = jsTestName();
const coll = db.getCollection(collName);
coll.drop();

View File

@ -19,7 +19,7 @@ import {
datasets,
} from "jstests/with_mongot/e2e_lib/search_e2e_utils.js";
const collName = "search_rank_fusion";
const collName = jsTestName();
const coll = db.getCollection(collName);
coll.drop();

View File

@ -13,7 +13,7 @@
* ]
*/
const collName = "search_score_fusion";
const collName = jsTestName();
const coll = db[collName];
const vectorSearchClauseAndSearchClause = {

View File

@ -14,7 +14,7 @@ import {
getMovieVectorSearchIndexSpec
} from "jstests/with_mongot/e2e_lib/data/movies.js";
const collName = "search_score_fusion";
const collName = jsTestName();
const coll = db.getCollection(collName);
coll.drop();

View File

@ -19,7 +19,7 @@ import {
datasets,
} from "jstests/with_mongot/e2e_lib/search_e2e_utils.js";
const collName = "search_score_fusion";
const collName = jsTestName();
const coll = db.getCollection(collName);
coll.drop();