Skip to content

Commit 7461c32

Browse files
Fix test failures
1 parent 8081d92 commit 7461c32

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

spec/spec_tests/data/client_side_operations_timeout/tailable-awaitData.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ schemaVersion: "1.9"
44

55
runOnRequirements:
66
- minServerVersion: "4.4"
7+
serverless: forbid # Capped collections are not allowed for serverless.
78

89
createEntities:
910
- client:
@@ -12,7 +13,7 @@ createEntities:
1213
- client:
1314
id: &client client
1415
uriOptions:
15-
timeoutMS: 10
16+
timeoutMS: 200
1617
useMultipleMongoses: false
1718
observeEvents:
1819
- commandStartedEvent
@@ -83,7 +84,7 @@ tests:
8384
data:
8485
failCommands: ["find"]
8586
blockConnection: true
86-
blockTimeMS: 15
87+
blockTimeMS: 300
8788
- name: find
8889
object: *collection
8990
arguments:
@@ -117,13 +118,13 @@ tests:
117118
data:
118119
failCommands: ["find", "getMore"]
119120
blockConnection: true
120-
blockTimeMS: 15
121+
blockTimeMS: 150
121122
- name: createFindCursor
122123
object: *collection
123124
arguments:
124125
filter: {}
125126
cursorType: tailableAwait
126-
timeoutMS: 29
127+
timeoutMS: 250
127128
batchSize: 1
128129
saveResultAsEntity: &tailableCursor tailableCursor
129130
# Iterate twice to force a getMore. The first iteration will return the document from the first batch and the
@@ -165,13 +166,13 @@ tests:
165166
data:
166167
failCommands: ["find", "getMore"]
167168
blockConnection: true
168-
blockTimeMS: 15
169+
blockTimeMS: 150
169170
- name: createFindCursor
170171
object: *collection
171172
arguments:
172173
filter: {}
173174
cursorType: tailableAwait
174-
timeoutMS: 29
175+
timeoutMS: 250
175176
batchSize: 1
176177
maxAwaitTimeMS: 1
177178
saveResultAsEntity: &tailableCursor tailableCursor
@@ -199,8 +200,8 @@ tests:
199200
collection: *collectionName
200201
maxTimeMS: 1
201202

202-
# The timeoutMS value should be refreshed for getMore's. This is a failure test. The find inherits timeoutMS=10 from
203-
# the collection and the getMore blocks for 15ms, causing iteration to fail with a timeout error.
203+
# The timeoutMS value should be refreshed for getMore's. This is a failure test. The find inherits timeoutMS=200 from
204+
# the collection and the getMore blocks for 250ms, causing iteration to fail with a timeout error.
204205
- description: "timeoutMS is refreshed for getMore - failure"
205206
operations:
206207
- name: failPoint
@@ -213,7 +214,7 @@ tests:
213214
data:
214215
failCommands: ["getMore"]
215216
blockConnection: true
216-
blockTimeMS: 15
217+
blockTimeMS: 250
217218
- name: createFindCursor
218219
object: *collection
219220
arguments:

0 commit comments

Comments
 (0)