Skip to content

Commit 093f4ab

Browse files
authored
CSOT tests. Increase timeouts to allow for testing on slower envs (#1552)
DRIVERS-2870
1 parent 959a5de commit 093f4ab

18 files changed

+117
-117
lines changed

source/client-side-operations-timeout/tests/change-streams.json

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/client-side-operations-timeout/tests/change-streams.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ tests:
6767
data:
6868
failCommands: ["aggregate"]
6969
blockConnection: true
70-
blockTimeMS: 55
70+
blockTimeMS: 250
7171
- name: createChangeStream
7272
object: *collection
7373
arguments:
7474
pipeline: []
75-
timeoutMS: 50
75+
timeoutMS: 200
7676
expectError:
7777
isTimeoutError: true
7878
expectEvents:
@@ -142,12 +142,12 @@ tests:
142142
data:
143143
failCommands: ["aggregate", "getMore"]
144144
blockConnection: true
145-
blockTimeMS: 15
145+
blockTimeMS: 150
146146
- name: createChangeStream
147147
object: *collection
148148
arguments:
149149
pipeline: []
150-
timeoutMS: 20
150+
timeoutMS: 200
151151
batchSize: 2
152152
maxAwaitTimeMS: 1
153153
saveResultAsEntity: &changeStream changeStream
@@ -171,16 +171,16 @@ tests:
171171
maxTimeMS: 1
172172

173173
# The timeout should be applied to the entire resume attempt, not individually to each command. The test creates a
174-
# change stream with timeoutMS=20 which returns an empty initial batch and then sets a fail point to block both
175-
# getMore and aggregate for 12ms each and fail with a resumable error. When the resume attempt happens, the getMore
176-
# and aggregate block for longer than 20ms total, so it times out.
174+
# change stream with timeoutMS=200 which returns an empty initial batch and then sets a fail point to block both
175+
# getMore and aggregate for 120ms each and fail with a resumable error. When the resume attempt happens, the getMore
176+
# and aggregate block for longer than 200ms total, so it times out.
177177
- description: "timeoutMS applies to full resume attempt in a next call"
178178
operations:
179179
- name: createChangeStream
180180
object: *collection
181181
arguments:
182182
pipeline: []
183-
timeoutMS: 20
183+
timeoutMS: 200
184184
saveResultAsEntity: &changeStream changeStream
185185
- name: failPoint
186186
object: testRunner
@@ -192,7 +192,7 @@ tests:
192192
data:
193193
failCommands: ["getMore", "aggregate"]
194194
blockConnection: true
195-
blockTimeMS: 12
195+
blockTimeMS: 120
196196
errorCode: 7 # HostNotFound - resumable but does not require an SDAM state change.
197197
# failCommand doesn't correctly add the ResumableChangeStreamError by default. It needs to be specified
198198
# manually here so the error is considered resumable. The failGetMoreAfterCursorCheckout fail point
@@ -234,9 +234,9 @@ tests:
234234
# Specify a short maxAwaitTimeMS because otherwise the getMore on the new cursor will wait for 1000ms and
235235
# time out.
236236
maxAwaitTimeMS: 1
237-
timeoutMS: 100
237+
timeoutMS: 200
238238
saveResultAsEntity: &changeStream changeStream
239-
# Block getMore for 150ms to force the next() call to time out.
239+
# Block getMore for 250ms to force the next() call to time out.
240240
- name: failPoint
241241
object: testRunner
242242
arguments:
@@ -247,7 +247,7 @@ tests:
247247
data:
248248
failCommands: ["getMore"]
249249
blockConnection: true
250-
blockTimeMS: 150
250+
blockTimeMS: 250
251251
# The original aggregate didn't return any events so this should do a getMore and return a timeout error.
252252
- name: iterateUntilDocumentOrError
253253
object: *changeStream
@@ -290,7 +290,7 @@ tests:
290290
collection: *collectionName
291291

292292
# The timeoutMS value should be refreshed for getMore's. This is a failure test. The createChangeStream operation
293-
# sets timeoutMS=10 and the getMore blocks for 15ms, causing iteration to fail with a timeout error.
293+
# sets timeoutMS=200 and the getMore blocks for 250ms, causing iteration to fail with a timeout error.
294294
- description: "timeoutMS is refreshed for getMore - failure"
295295
operations:
296296
- name: failPoint
@@ -303,12 +303,12 @@ tests:
303303
data:
304304
failCommands: ["getMore"]
305305
blockConnection: true
306-
blockTimeMS: 15
306+
blockTimeMS: 250
307307
- name: createChangeStream
308308
object: *collection
309309
arguments:
310310
pipeline: []
311-
timeoutMS: 10
311+
timeoutMS: 200
312312
saveResultAsEntity: &changeStream changeStream
313313
# The first iteration should do a getMore
314314
- name: iterateUntilDocumentOrError

source/client-side-operations-timeout/tests/close-cursors.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/client-side-operations-timeout/tests/close-cursors.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ tests:
4646
data:
4747
failCommands: ["getMore"]
4848
blockConnection: true
49-
blockTimeMS: 50
49+
blockTimeMS: 250
5050
- name: createFindCursor
5151
object: *collection
5252
arguments:
5353
filter: {}
5454
batchSize: 2
55-
timeoutMS: 20
55+
timeoutMS: 200
5656
saveResultAsEntity: &cursor cursor
5757
# Iterate the cursor three times. The third should do a getMore, which should fail with a timeout error.
5858
- name: iterateUntilDocumentOrError
@@ -99,18 +99,18 @@ tests:
9999
data:
100100
failCommands: ["killCursors"]
101101
blockConnection: true
102-
blockTimeMS: 30
102+
blockTimeMS: 250
103103
- name: createFindCursor
104104
object: *collection
105105
arguments:
106106
filter: {}
107107
batchSize: 2
108-
timeoutMS: 20
108+
timeoutMS: 200
109109
saveResultAsEntity: &cursor cursor
110110
- name: close
111111
object: *cursor
112112
arguments:
113-
timeoutMS: 40
113+
timeoutMS: 400
114114
expectEvents:
115115
- client: *client
116116
events:

source/client-side-operations-timeout/tests/convenient-transactions.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/client-side-operations-timeout/tests/convenient-transactions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ createEntities:
1313
- client:
1414
id: &client client
1515
uriOptions:
16-
timeoutMS: 50
16+
timeoutMS: 500
1717
useMultipleMongoses: false
1818
observeEvents:
1919
- commandStartedEvent
@@ -66,7 +66,7 @@ tests:
6666
data:
6767
failCommands: ["insert"]
6868
blockConnection: true
69-
blockTimeMS: 30
69+
blockTimeMS: 300
7070
- name: withTransaction
7171
object: *session
7272
arguments:

source/client-side-operations-timeout/tests/non-tailable-cursors.json

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)