Skip to content

Commit 5a5ee03

Browse files
authored
test(NODE-5238): set min/max range options when required. (#636)
1 parent afb6dc7 commit 5a5ee03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/clientEncryption.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,8 @@ describe('ClientEncryption', function () {
711711
algorithm: 'RangePreview',
712712
contentionFactor: 0,
713713
rangeOptions: {
714+
min: new BSON.Long(0),
715+
max: new BSON.Long(10),
714716
sparsity: new BSON.Long(1)
715717
},
716718
keyId: dataKey
@@ -763,6 +765,8 @@ describe('ClientEncryption', function () {
763765
queryType: 'rangePreview',
764766
contentionFactor: 0,
765767
rangeOptions: {
768+
min: new BSON.Int32(0),
769+
max: new BSON.Int32(10),
766770
sparsity: new BSON.Long(1)
767771
},
768772
keyId: dataKey

0 commit comments

Comments
 (0)