48
48
expectError :
49
49
isClientError : true
50
50
51
- - description : " error if maxAwaitTimeMS is greater than timeoutMS"
51
+ - description : " error on find if maxAwaitTimeMS is greater than timeoutMS"
52
52
operations :
53
53
- name : find
54
54
object : *collection
@@ -59,8 +59,33 @@ tests:
59
59
maxAwaitTimeMS : 10
60
60
expectError :
61
61
isClientError : true
62
+ isTimeoutError : false
62
63
63
- - description : " error if maxAwaitTimeMS is equal to timeoutMS"
64
+ - description : " error on aggregate if maxAwaitTimeMS is greater than timeoutMS"
65
+ operations :
66
+ - name : aggregate
67
+ object : *collection
68
+ arguments :
69
+ pipeline : []
70
+ timeoutMS : 5
71
+ maxAwaitTimeMS : 10
72
+ expectError :
73
+ isClientError : true
74
+ isTimeoutError : false
75
+
76
+ - description : " error on watch if maxAwaitTimeMS is greater than timeoutMS"
77
+ operations :
78
+ - name : createChangeStream
79
+ object : *collection
80
+ arguments :
81
+ pipeline : []
82
+ timeoutMS : 5
83
+ maxAwaitTimeMS : 10
84
+ expectError :
85
+ isClientError : true
86
+ isTimeoutError : false
87
+
88
+ - description : " error on find if maxAwaitTimeMS is equal to timeoutMS"
64
89
operations :
65
90
- name : find
66
91
object : *collection
@@ -71,6 +96,31 @@ tests:
71
96
maxAwaitTimeMS : 5
72
97
expectError :
73
98
isClientError : true
99
+ isTimeoutError : false
100
+
101
+ - description : " error on aggregate if maxAwaitTimeMS is equal to timeoutMS"
102
+ operations :
103
+ - name : aggregate
104
+ object : *collection
105
+ arguments :
106
+ pipeline : []
107
+ timeoutMS : 5
108
+ maxAwaitTimeMS : 5
109
+ expectError :
110
+ isClientError : true
111
+ isTimeoutError : false
112
+
113
+ - description : " error on watch if maxAwaitTimeMS is equal to timeoutMS"
114
+ operations :
115
+ - name : createChangeStream
116
+ object : *collection
117
+ arguments :
118
+ pipeline : []
119
+ timeoutMS : 5
120
+ maxAwaitTimeMS : 5
121
+ expectError :
122
+ isClientError : true
123
+ isTimeoutError : false
74
124
75
125
- description : " timeoutMS applied to find"
76
126
operations :
@@ -103,7 +153,7 @@ tests:
103
153
tailable : true
104
154
awaitData : true
105
155
maxTimeMS : { $$exists: true }
106
-
156
+
107
157
# If maxAwaitTimeMS is not set, timeoutMS should be refreshed for the getMore and the getMore should not have a
108
158
# maxTimeMS field.
109
159
- description : " timeoutMS is refreshed for getMore if maxAwaitTimeMS is not set"
@@ -271,7 +321,7 @@ tests:
271
321
saveResultAsEntity : &tailableCursor tailableCursor
272
322
- name : iterateOnce
273
323
object : *tailableCursor
274
- - name : iterateUntilDocumentOrError
324
+ - name : iterateUntilDocumentOrError
275
325
object : *tailableCursor
276
326
expectError :
277
327
isTimeoutError : true
@@ -283,12 +333,12 @@ tests:
283
333
commandName : find
284
334
databaseName : *databaseName
285
335
- commandStartedEvent :
286
- commandName : getMore
336
+ commandName : getMore
287
337
databaseName : *databaseName
288
338
command :
289
339
maxTimeMS : { $$lte: 100 }
290
340
- commandStartedEvent :
291
- commandName : getMore
341
+ commandName : getMore
292
342
databaseName : *databaseName
293
343
command :
294
344
maxTimeMS : { $$lte: 70 }
@@ -316,7 +366,8 @@ tests:
316
366
commandName : find
317
367
databaseName : *databaseName
318
368
- commandStartedEvent :
319
- commandName : getMore
369
+ commandName : getMore
320
370
databaseName : *databaseName
321
371
command :
322
372
maxTimeMS : { $$lte: 100 }
373
+
0 commit comments