We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0711449 commit 975ae7fCopy full SHA for 975ae7f
src/mongocxx/test/index_view.cpp
@@ -370,7 +370,10 @@ TEST_CASE("drop_one", "[index_view]") {
370
auto cursor = indexes.list();
371
REQUIRE(std::distance(cursor.begin(), cursor.end()) == 1);
372
373
- REQUIRE_THROWS_AS(indexes.drop_one("foo"), operation_exception);
+ // SERVER-90152: "dropIndex should be idempotent"
374
+ if (!test_util::newer_than("8.3")) {
375
+ REQUIRE_THROWS_AS(indexes.drop_one("foo"), operation_exception);
376
+ }
377
}
378
379
0 commit comments