Skip to content

Commit 3aa0528

Browse files
authored
DRIVERS-3279 clarify expected server errors in CSE prose test 4 (#1832)
1 parent 49ade88 commit 3aa0528

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/client-side-encryption/tests/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ Using `client_encrypted` perform the following operations:
619619
`{ "_id": "encryption_exceeds_16mib", "unencrypted": < the string "a" repeated (16777216 - 2000) times > }` into
620620
`coll`.
621621

622-
Expect this to fail since encryption results in a document exceeding the `maxBsonObjectSize` limit.
622+
Expect this to fail indicating the document exceeded the `maxBsonObjectSize` limit. If the write is sent to the
623+
server (i.e. does not fail due to a driver-side check), expect a server error with code 2 or 10334.
623624

624625
7. If using MongoDB 8.0+, use MongoClient.bulkWrite to insert the following into `coll2`:
625626

0 commit comments

Comments
 (0)