File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed
source/client-side-encryption Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -38,20 +38,22 @@ tests:
38
38
command_name: listCollections
39
39
40
40
# Test that timeoutMS applies to the sum of all operations done for client-side encryption. This is done by blocking
41
- # listCollections and find for 20ms each and running an insertOne with timeoutMS=50. There should be two
42
- # listCollections commands and one "find" command, so the sum should take more than timeoutMS.
41
+ # listCollections and find for 30ms each and running an insertOne with timeoutMS=50. There should be one
42
+ # listCollections command and one "find" command, so the sum should take more than timeoutMS. A second listCollections
43
+ # event doesn't occur due to the internal MongoClient lacking configured auto encryption, plus libmongocrypt holds the
44
+ # collection schema in cache for a minute.
43
45
#
44
46
# This test does not include command monitoring expectations because the exact command sequence is dependent on the
45
47
# amount of time taken by mongocryptd communication. In slow runs, mongocryptd communication can breach the timeout
46
48
# and result in the final "find" not being sent.
47
49
- description: "remaining timeoutMS applied to find to get keyvault data"
48
50
failPoint:
49
51
configureFailPoint: failCommand
50
- mode: { times: 3 }
52
+ mode: { times: 2 }
51
53
data:
52
54
failCommands: ["listCollections", "find"]
53
55
blockConnection: true
54
- blockTimeMS: 20
56
+ blockTimeMS: 30
55
57
clientOptions:
56
58
autoEncryptOpts:
57
59
kmsProviders:
Original file line number Diff line number Diff line change @@ -38,20 +38,22 @@ tests:
38
38
command_name : listCollections
39
39
40
40
# Test that timeoutMS applies to the sum of all operations done for client-side encryption. This is done by blocking
41
- # listCollections and find for 20ms each and running an insertOne with timeoutMS=50. There should be two
42
- # listCollections commands and one "find" command, so the sum should take more than timeoutMS.
41
+ # listCollections and find for 30ms each and running an insertOne with timeoutMS=50. There should be one
42
+ # listCollections command and one "find" command, so the sum should take more than timeoutMS. A second listCollections
43
+ # event doesn't occur due to the internal MongoClient lacking configured auto encryption, plus libmongocrypt holds the
44
+ # collection schema in cache for a minute.
43
45
#
44
46
# This test does not include command monitoring expectations because the exact command sequence is dependent on the
45
47
# amount of time taken by mongocryptd communication. In slow runs, mongocryptd communication can breach the timeout
46
48
# and result in the final "find" not being sent.
47
49
- description : " remaining timeoutMS applied to find to get keyvault data"
48
50
failPoint :
49
51
configureFailPoint : failCommand
50
- mode : { times: 3 }
52
+ mode : { times: 2 }
51
53
data :
52
54
failCommands : ["listCollections", "find"]
53
55
blockConnection : true
54
- blockTimeMS : 20
56
+ blockTimeMS : 30
55
57
clientOptions :
56
58
autoEncryptOpts :
57
59
kmsProviders :
You can’t perform that action at this time.
0 commit comments