Skip to content

Commit 198894a

Browse files
authored
CXX-2785 use read concern majority in test (#1069)
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.
1 parent 1b9b5a1 commit 198894a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongocxx/test/search_index_view.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ TEST_CASE("atlas search indexes prose tests", "") {
235235

236236
// Apply non-default read concern.
237237
auto nondefault_rc = mongocxx::read_concern();
238-
nondefault_rc.acknowledge_level(mongocxx::read_concern::level::k_local);
238+
nondefault_rc.acknowledge_level(mongocxx::read_concern::level::k_majority);
239239
coll.read_concern(nondefault_rc);
240240

241241
auto siv = coll.search_indexes();

0 commit comments

Comments
 (0)