Skip to content

Commit

Permalink
CXX-2785 use read concern majority in test (#1069)
Browse files Browse the repository at this point in the history
read concern local is accepted for aggregate with $listSearchIndexes. To avoid a false positive test, use read concern majority. If the read concern is incorrectly applied to the command, Atlas will return an error.
  • Loading branch information
kevinAlbs authored Dec 12, 2023
1 parent 1b9b5a1 commit 198894a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongocxx/test/search_index_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ TEST_CASE("atlas search indexes prose tests", "") {

// Apply non-default read concern.
auto nondefault_rc = mongocxx::read_concern();
nondefault_rc.acknowledge_level(mongocxx::read_concern::level::k_local);
nondefault_rc.acknowledge_level(mongocxx::read_concern::level::k_majority);
coll.read_concern(nondefault_rc);

auto siv = coll.search_indexes();
Expand Down

0 comments on commit 198894a

Please sign in to comment.