@@ -3572,6 +3572,7 @@ test_explicit_encryption_case1 (void *unused)
3572
3572
mongoc_client_encryption_encrypt_opts_set_keyid (eopts , & eef -> key1ID );
3573
3573
mongoc_client_encryption_encrypt_opts_set_algorithm (
3574
3574
eopts , MONGOC_ENCRYPT_ALGORITHM_INDEXED );
3575
+ mongoc_client_encryption_encrypt_opts_set_contention_factor (eopts , 0 );
3575
3576
3576
3577
ok = mongoc_client_encryption_encrypt (
3577
3578
eef -> clientEncryption , & plaintext , eopts , & insertPayload , & error );
@@ -3607,6 +3608,7 @@ test_explicit_encryption_case1 (void *unused)
3607
3608
eopts , MONGOC_ENCRYPT_ALGORITHM_INDEXED );
3608
3609
mongoc_client_encryption_encrypt_opts_set_query_type (
3609
3610
eopts , MONGOC_ENCRYPT_QUERY_TYPE_EQUALITY );
3611
+ mongoc_client_encryption_encrypt_opts_set_contention_factor (eopts , 0 );
3610
3612
3611
3613
ok = mongoc_client_encryption_encrypt (
3612
3614
eef -> clientEncryption , & plaintext , eopts , & findPayload , & error );
@@ -3677,7 +3679,7 @@ test_explicit_encryption_case2 (void *unused)
3677
3679
mongoc_client_encryption_encrypt_opts_destroy (eopts );
3678
3680
}
3679
3681
3680
- /* Find with default contention factor of 0. Expect < 10 documents returned.
3682
+ /* Find with contention factor of 0. Expect < 10 documents returned.
3681
3683
*/
3682
3684
{
3683
3685
bson_value_t findPayload ;
@@ -3692,6 +3694,7 @@ test_explicit_encryption_case2 (void *unused)
3692
3694
eopts , MONGOC_ENCRYPT_ALGORITHM_INDEXED );
3693
3695
mongoc_client_encryption_encrypt_opts_set_query_type (
3694
3696
eopts , MONGOC_ENCRYPT_QUERY_TYPE_EQUALITY );
3697
+ mongoc_client_encryption_encrypt_opts_set_contention_factor (eopts , 0 );
3695
3698
3696
3699
ok = mongoc_client_encryption_encrypt (
3697
3700
eef -> clientEncryption , & plaintext , eopts , & findPayload , & error );
@@ -3850,6 +3853,7 @@ test_explicit_encryption_case4 (void *unused)
3850
3853
mongoc_client_encryption_encrypt_opts_set_keyid (eopts , & eef -> key1ID );
3851
3854
mongoc_client_encryption_encrypt_opts_set_algorithm (
3852
3855
eopts , MONGOC_ENCRYPT_ALGORITHM_INDEXED );
3856
+ mongoc_client_encryption_encrypt_opts_set_contention_factor (eopts , 0 );
3853
3857
3854
3858
ok = mongoc_client_encryption_encrypt (
3855
3859
eef -> clientEncryption , & plaintext , eopts , & payload , & error );
0 commit comments