@@ -1428,8 +1428,14 @@ _test_count_read_concern_live (bool supports_read_concern)
14281428 mongoc_client_destroy (client );
14291429}
14301430
1431+ int
1432+ mongod_supports_majority_read_concern (void )
1433+ {
1434+ return test_framework_getenv_bool ("MONGOC_ENABLE_MAJORITY_READ_CONCERN" );
1435+ }
1436+
14311437static void
1432- test_count_read_concern_live (void )
1438+ test_count_read_concern_live (void * context )
14331439{
14341440 if (test_framework_max_wire_version_at_least (WIRE_VERSION_READ_CONCERN )) {
14351441 _test_count_read_concern_live (true);
@@ -2890,7 +2896,7 @@ test_collection_install (TestSuite *suite)
28902896 TestSuite_Add (suite , "/Collection/count" , test_count );
28912897 TestSuite_Add (suite , "/Collection/count_with_opts" , test_count_with_opts );
28922898 TestSuite_Add (suite , "/Collection/count/read_concern" , test_count_read_concern );
2893- TestSuite_Add (suite , "/Collection/count/read_concern_live" , test_count_read_concern_live );
2899+ TestSuite_AddFull (suite , "/Collection/count/read_concern_live" , test_count_read_concern_live , NULL , NULL , mongod_supports_majority_read_concern );
28942900 TestSuite_Add (suite , "/Collection/drop" , test_drop );
28952901 TestSuite_Add (suite , "/Collection/aggregate" , test_aggregate );
28962902 TestSuite_Add (suite , "/Collection/aggregate/large" , test_aggregate_large );
0 commit comments