@@ -1428,8 +1428,14 @@ _test_count_read_concern_live (bool supports_read_concern)
1428
1428
mongoc_client_destroy (client );
1429
1429
}
1430
1430
1431
+ int
1432
+ mongod_supports_majority_read_concern (void )
1433
+ {
1434
+ return test_framework_getenv_bool ("MONGOC_ENABLE_MAJORITY_READ_CONCERN" );
1435
+ }
1436
+
1431
1437
static void
1432
- test_count_read_concern_live (void )
1438
+ test_count_read_concern_live (void * context )
1433
1439
{
1434
1440
if (test_framework_max_wire_version_at_least (WIRE_VERSION_READ_CONCERN )) {
1435
1441
_test_count_read_concern_live (true);
@@ -2890,7 +2896,7 @@ test_collection_install (TestSuite *suite)
2890
2896
TestSuite_Add (suite , "/Collection/count" , test_count );
2891
2897
TestSuite_Add (suite , "/Collection/count_with_opts" , test_count_with_opts );
2892
2898
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 );
2894
2900
TestSuite_Add (suite , "/Collection/drop" , test_drop );
2895
2901
TestSuite_Add (suite , "/Collection/aggregate" , test_aggregate );
2896
2902
TestSuite_Add (suite , "/Collection/aggregate/large" , test_aggregate_large );
0 commit comments